Useful Unix commands for managing a server


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.