GNU/LINUX

Monday, July 12, 2004

Some helpful commands to know your running process :

1) netstat -an ----> this will show you which applications are listening on which ports - this is one way to tell if you're web/db server is up and runnning

2) locate -----> locate searches the file system for the file name you give it (well actually it searches a database of the filesystem, but that's just splitting hairs)

3) ps -aux ----> This command shows you ALL the processes running on the system ( the '| grep http' bit searches through the output of ps -aux and filters it based on the arg to grep - in this case the string 'http')

4) netstat -ln ------> Lists network ports that are in the LIsten state.

5) netstat -lnp -----> Lists network ports along with programs( Active Internet Connections)


0 Comments:

Post a Comment

<< Home