cd /usr/share/zoneinfo
ls /usr/share/zoneinfo/Turkey
sudo mv /etc/localtime /etc/localtime.bak
sudo ln -s /usr/share/zoneinfo/Turkey /etc/localtime
date
yum -y install nano
echo "set nowrap" >>/etc/nanorc
cat <<EOF >>/etc/profile.d/nano.sh
export VISUAL="nano"
export EDITOR="nano"
EOF
nano ~/.bashrc
PS1='\[\033[02;32m\]\u@\H:\[\033[02;34m\]\w\$\[\033[00m\] '
alias ls='ls -hF --group-directories-first --color=auto'
hostnamectl set-hostname "Your-Hostname"
nano /etc/sysconfig/network
HOSTNAME=Your-Hostname
nano /etc/hosts
cat /etc/hostname
hostname
hostnamectl
passwd root
adduser username
passwd username
usermod -aG wheel username
cat /etc/passwd
sudo cat /etc/shadow
last | grep user
lid -g wheel
userdel username
userdel -r username
sudo nano /etc/ssh/sshd_config
PermitRootLogin no
sudo service sshd restart
sudo nano /etc/ssh/sshd_config
Port 2345
firewall-cmd --add-port 2345/tcp
firewall-cmd --add-port 2345/tcp --permanent
semanage port -a -t ssh_port_t -p tcp 2345
sudo service sshd restart
sudo yum update
sudo swapon -s
sudo fallocate -l 4G /swapfile
sudo dd if=/dev/zero of=/swapfile bs=1G count=2
ls -lh /swapfile
sudo chown root:root /swapfile
sudo chmod 0600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo nano /etc/fstab
/swapfile none swap sw 0 0
cat /proc/sys/vm/swappiness
sudo nano /etc/sysctl.conf
vm.swappiness=5
sudo nano /etc/sysctl.conf
sudo sysctl -p
tutorialspoint klaver suse cyberciti
ls /etc/yum.repos.d
enabled=1
sudo yum install p7zip screen zip unzip bind-utils net-tools lsof curl nmap whois ethtool iotop iptraf ioping ncdu psmisc
sudo yum install p7zip lm-sensors smartmontools dmidecode hddtemp
yum provides PROGNAME
yum whatprovides PROGNAME
find ~ -type d -exec chmod 751 {} \;
find ~ -type f -exec chmod 640 {} \;
sudo nano /etc/login.defs
umask 026
sudo nano /etc/systemd/system.conf
LogLevel=notice
sudo service rsyslog restart
sudo systemd-analyze set-log-level notice