December 19, 2009

Other useful commands

netstat -tupl :List internet services on a system

netstat -tup :List active connections to/from system

# lsof -p $$ :List paths that process id has open

# lsof ~ :List processes that have specified path open

# last reboot :Show system reboot history.

# ls -lSr :Show files, biggest last

# du -s * | sort -k1,1rn | head :Show top disk users in current dir. See also dutop

# cat /proc/partitions :Show all partitions registered on the system

No comments:

Post a Comment