Shell Commands and Examples - ilya-khadykin/notes-outdated GitHub Wiki
Useful shell commands and exaples
lsb_release -a # Ubuntu specific version information
uname -acurl -OL example.com/code.zip
# -O -> save file using the same name as on the server
# -L -> follow redirectsnetstat -tlpn | grep mysqlCopy the process id from ps -e command and then run the following:
ps x | grep <process-id>ps -ef | grep mysql
grep port /etc/mysql/my.cnf
grep -riI ssmtp /var/log # finds ssmtp logsdate
cal
df
free
pwd
cd
ls