Linux

tmux

To attach to a specific session, run tmux a -t SESSION_ID CTRL+B % Split window vertically CTRL+B “ Split window horizontally CTRL+B…

add-apt-repository

add-apt-repository command can be used to add repository in ubuntu. To install, run apt-get install software-properties-common python-software-properties Example apt-key adv –recv-keys –keyserver…

rsync

rsync command with exclude option, full server backup to a remote server. Transfer a file I normally use scp to do single…

smartctl

To check hard disk for errors, run /usr/sbin/smartctl -q errorsonly -H -l selftest -l error /dev/sda Here is an example of HDD…

gzip

Enable Gzip in Amazon Linux How to enable gzip on Plesk Nginx To check if a web site have gzip enabled, run…

systemctl

Service files To list all services run To list failed services List all enabled services List timers See all running services See…