In this lesson, we will learn how to check the status of running processes.
Checking Process Status with ps
The ps
command is used to provide information about currently running processes.
ps aux
a
: Show processes for all users.u
: Display detailed information.x
: Include processes not attached to a terminal.
Viewing Process Tree with pstree
The pstree
command displays running processes in a tree format.
pstree
Monitoring Processes with top
The top
command provides real-time system statistics, including CPU and memory usage.
top