Linux commands

Common

Domain information

dig ns web-lab.solutions
dig a web-lab.solutions
dig mx web-lab.solutions
whois web-lab.solutions

rsync

rsync -rp root/ /var/www/web-lab/website/root/

SSH access

ssh user@host ls

MySQL import

mysql -uusername -ppassword dbname < dbfile

MySQL optimize

mysqlcheck -o database_name

Debian version

cat /etc/issue
cat /etc/debian_version
uname –m
lsb_release -a

All processes

top

Images resize

apt-get install imagemagick
mogrify -resize 1920x1920 -quality 50 *

ER Diagrams

apt-get install sqlfairy
sqlt-diagram -d=MySQL -o=sample_schema.png schema.sql --color

Japanese

apt-get install ttf-kochi-mincho ttf-kochi-gothic ttf-sazanami-mincho
apt-get install ttf-ipafont-gothic ttf-ipafont-mincho
apt-get install ttf-arphic-uming ttf-wqy-zenhei ttf-sazanami-mincho ttf-sazanami-gothic ttf-unfonts-core