PS or Process Status is a free and open-source process viewer application for Linux systems. By using the PS command-line tool, you can monitor all running processes on a Linux system. It only shows static information about the process. This article provides several examples of PS command usage.
PS Command Examples
How to Display Processes for the current shell:
In the terminal app (ctrl+alt+t) run below command.
ps
PS Real-time Process Monitoring:
You use PS as a real-time monitoring using watch tool like below command.
watch -n 1 'ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head'
How to Display every active process on Linux:
ps -A
Display Process Tree:
ps -e --forest
How to Display User Running Processes:
ps -x
For the complete ps help and usage details, run below commands.
ps --help all
man ps