September 23, 2023, Saturday afternoon
Table of contents
In Linux systems, there are several ways to find and view processes:
Use ps command
The most basic command can view all current processes:
ps aux
View the specified process:
ps aux | grep process_name
Use the top command
View process status and resource usage dynamically in real time, press q to exit:
top
Use the pstree command
View process relationships in a tree structure:
pstree
View the /proc directory
Each process has a numeric directory under /proc that contains process details:
ls /proc