date
cat /etc/timezone
dpkg-reconfigure tzdata
service cron restart
apt-get update
apt-get install ntp
ntpdate pool.ntp.org
timedatectl status
sudo apt-get install nano
sudo update-alternatives --config editor
export EDITOR=/bin/nano
nano ~/.bashrc
force_color_prompt=yes
alias ls='ls -hF --group-directories-first --color=auto'
nano /etc/hostname
nano /etc/hosts
hostname -s
hostname -d
hostname -f
rm /etc/ssh/ssh_host_*
ssh-keygen -R hostname
ssh-keygen -R ip
/usr/sbin/dpkg-reconfigure openssh-server
ssh-keygen -t dsa -N "" -f /etc/ssh/ssh_host_dsa_key
ssh-keygen -t rsa -N "" -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -t ecdsa -N "" -f /etc/ssh/ssh_host_ecdsa_key
ssh newuser@hostname
passwd
adduser newuser
gpasswd -a newuser sudo
cat /etc/passwd
sudo cat /etc/shadow
last | grep user
sudo deluser --remove-home user
sudo nano /etc/ssh/sshd_config
PermitRootLogin no
sudo service ssh restart
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
sudo swapon -s
sudo fallocate -l 2G /swapfile
sudo dd if=/dev/zero of=/swapfile bs=1G count=2
sudo chown root:root /swapfile
sudo chmod 0600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
/swapfile none swap sw 0 0
cat /proc/sys/vm/swappiness
vm.swappiness=10
sudo nano /etc/sysctl.conf
sudo sysctl -p
tutorialspoint klaver suse cyberciti
sudo apt-get install p7zip p7zip-full p7zip-rar software-properties-common python-software-properties command-not-found screen unrar-free unrar unzip zip lm-sensors lsof tree smartmontools htop gpw curl nmap whois dmidecode hddtemp ethtool iotop iptraf ioping ncdu psmisc
ip addr
ip addr add 236.243.84.73/32 dev eth0
sudo nano /etc/network/interfaces
up ip addr add 236.243.84.73/32 dev eth0
down ip addr del 236.243.84.73/32 dev eth0
find ~ -type d -exec chmod 750 {} \;
find ~ -type f -exec chmod 640 {} \;
nano ~/.profile
umask 027
sudo nano /etc/systemd/system.conf
LogLevel=notice
sudo systemctl restart rsyslog
sudo systemd-analyze set-log-level notice