linux

What is listening on my server?

Being a sysadmin, you'll probably often need to find out what is running on a server. There are several ways to do this on Linux: # netstat -nlptu Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:…

Check Linux disk usage

Some ways to see what is filling your disks: du --max-depth=5 -xha | sort -hr | head -n 30 Or install ncdu (http://dev.yorhel.nl/ncdu): ncdu -rx / ncdu 1.10 ~ Use the arrow keys to navigate, press ? for help [read-only] --- / ---------------------------------------------------------------------- 817.0MiB [##########] /usr 486.3MiB [##### ] /var 476.…