Posted By

paulbooker on 01/27/09


Tagged


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

mauroego
sulfurito
dariusm5


Useful Unix commands for managing a server


 / Published in: Bash
 

Some of my most useful commands. For more help use the --help

  1. top // frequently-updated list of processes
  2. http://en.wikipedia.org/wiki/Top_(Unix)
  3.  
  4. netstat -a // network connections (both incoming and outgoing)
  5. netstat -a | grep 3306 | wc -l // (how many connections on port 3306)
  6. http://en.wikipedia.org/wiki/Netstat
  7.  
  8. ps //currently-running processes
  9. http://en.wikipedia.org/wiki/Ps_(Unix)
  10.  
  11. uptime //time a computer system has been "up" and running
  12. http://en.wikipedia.org/wiki/Uptime
  13.  
  14. sar // activity for the CPU
  15. http://en.wikipedia.org/wiki/Sar_in_UNIX
  16.  
  17. free // free memory
  18. free -m
  19.  
  20. who // whos there ?
  21. http://en.wikipedia.org/wiki/Who_(Unix)
  22.  
  23. uname // prints the name, version and other details about the current machine and the operating system running on it
  24. http://en.wikipedia.org/wiki/Uname

Report this snippet  

You need to login to post a comment.