Junior — Middle
How can you view all running processes on a Linux system?
sobes.tech AI
Answer from AI
On Linux, several commands can be used to view all running processes:
-
ps aux — displays a list of all processes with detailed information.
-
top — an interactive process monitor that updates in real time.
-
htop — an improved version of top with a user-friendly interface (if installed).
-
pgrep — searches for processes by name.
Example command to display all processes:
ps aux
The output contains information about the user, PID, CPU and memory usage, start time, and process command.
For more detailed analysis, pstree can be used to display processes in a tree structure.