Operating Systems
A Linux workstation has become very slow. A technician wants a live, continuously updating view of CPU and memory use by each process. Which command should be used?
Show the answer
Correct answerA. top
AWhy this is right: top refreshes continuously, showing per-process CPU and memory use in real time.
BWhy not this: ps gives a single snapshot of processes and does not update on its own.
CWhy not this: df shows disk space on file systems, not CPU or memory use by process.
DWhy not this: du shows disk space used by files and directories, not live process activity.
top shows a real-time, refreshing list of processes sorted by resource use, along with overall CPU and memory figures. The ps command is tempting but only prints a one-time snapshot of processes.