LINUX NEWBIE ADMINISTRATOR GUIDE
Link:
1 Reply
I think everyone when running linux gradually creates a 'cheatsheet'
of one liners to accomplish tasks they had to work out how to do at first.
Mine is:
lsof -i -P = shows which commands are using which ports
lsof +D /path = shows what files are open (and who has them open) under /path
fuser -n tcp PORTNUM = get the PID using a specific portnumber
du -sh DIR = count the total size of DIR including all subdirs / subfiles
netstat -a -p -l = show all listening processes and their information