Linux PS Command
![]() |
|
| ps -aux with all columns |
D – Un-Interrupt Sleep
Press CTRL + Z while running a process and your process will sleep until you resume it.
Press CTRL + C and the running process will terminate forcibly.
START – The time at which the process started.
COMMAND – It shows the command executed by the user which has called that particular process alive.
TIME – It shows the duration of time that has passed while the process got activated.
Display Threads – The command which will display all the threads related to the particular process. The syntax is
Enter the PID and one will get the threading of any particular process.
![]() |
| Thread |
NOTE – The -e command just shows the total process running, the -f command shows details about that particular process, the -u command is for the user.
Search a Process – This command searches the details of any process by their name. The syntax is ps -C
![]() |
|
| Search |
Process run by the user – This command shows the processes a particular user has executed. Since -u is defined as user hence we use it here
The syntax is ps -f -u
PSTREE – This command shows the hierarchy of the process. It shows process of process and the links between them. The syntax is simple pstree
PS REAL TIME task manager – This will show data in terms of real time data with memory consumption, CPU consumption as well as location. It can be achieved by the watch command.
The syntax is watch -n 1 ‘ps -aux –sort -pmem,p-pcpu
Here the integer 1 will update the terminal stdout with a frequency of 1Hz i.e. after every 1 seconds. Replace 1 with 2 and stdout will be updated in every 2 seconds.
SORT PS – The process data and consumption can be obtained in sorted form by using –sort keyword followed by the column category which we want to be sorted.
Thus one must know the column name and it goes on by the command ps -f –sort
Some of the commonly used terms for Columns are
1. PPID – Shows the parent process ID
2. PID – SHows the process identification ID
3. UTIME – User Time
4. SIZE – size
5. UID – User Id
There are further terms which can be searched though. 🙂
Example Syntax ps -aux –sort -pmem
Note – PS Commands can also be used here without the hyphen or ‘dash’. With dash these commands are of UNIX style and without dash these commands are of BSD style and with two dash these are of GNU style.
Try running the command ps aux and you would get this output.
Using ps –aux may give an error “unknown gnu long option” . To be more clearly this –
PS WITH PID Suppose we know the PID number of any particular process then it becomes easy to search about that process by entering ps -p
PS WITH PIPELINE When the number of process grows too much in number and cannot be fit on your machine screen then the command ps aux | less can be used. Press your spacebar button to see the next entries.
Thus these commands are enough to get information about your process’s details on your machine.










