Thursday 19 December 2013

Process Status - Unix

The ps command is quite a useful command in Unix to find out information related to processes.

There are a lot of switches for the ps command for doing a bunch of things.

Most frequently used switch is -ef  This can be used to to list all the running processes alongwith their PID's (process ID)

  • If you want to find out all processes of a specific user then use the foll.


ps -u <username>

Eg: ps -u root


  • If you want to find the PID of a certain process, searching by its process name then use the following command: 
ps -ef | grep <process name string>

Eg: ps -ef | grep jrockit  (Narrow down the output of ps command by piping it to a grep statement)

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...
eXTReMe Tracker