Display information about active processes running on the system.
ps
| Command | Description |
|---|---|
| ps -e | Show All Processes |
| ps -ef | Show Processes Details |
| ps -u username | Show Processes of a Specific User |
| ps -p 1234 | Show Processes by Process ID (PID) |
| ps -e --forest | Show Processes in a Tree Format |
| ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu | Show Processes Using CPU and Memory Usage |
| ps -t pts/0 | Show Processes Running in a Terminal |
| ps -ef --forest | grep process_name | Show Parent and Child Processes |