Difficulty: Easy
Correct Answer: ps
Explanation:
Introduction / Context:
Monitoring processes is a core Unix/Linux skill. Administrators and developers routinely need to list active processes, see their process IDs (PIDs), controlling terminals, CPU time usage, and the commands that launched them. The standard utility that reveals these characteristics in a flexible way is essential for troubleshooting performance, runaway tasks, and job control.
Given Data / Assumptions:
Concept / Approach:
The 'ps' command (process status) reports properties of processes. Common flags include 'ps aux' (BSD style) to view all processes with users, or 'ps -ef' (SysV style) for a full listing. You can filter by PID, user, or terminal, and format columns with '-o' for custom output. This makes 'ps' the go-to tool for a quick, scriptable view of process characteristics.
Step-by-Step Solution:
Verification / Alternative check:
Correlate the reported PID with '/proc/
Why Other Options Are Wrong:
Common Pitfalls:
Misinterpreting BSD vs SysV flags, forgetting to use root privileges for full listings, or assuming 'ps' is live-updating (it is a snapshot; use 'top' for continuous updates).
Final Answer:
ps
Discussion & Comments