A system administrator needs to monitor resource usage and performance in real time to identify a process that is consuming an unusually high percentage of CPU resources. Which of the following commands provides the BEST solution for this requirement?
The 'top' command is the correct answer because it displays a dynamic, real-time view of system processes, including CPU usage, memory consumption, and other important metrics. By using 'top', the administrator can easily identify processes that are using a high percentage of CPU resources. The 'ps aux --sort -%cpu' command provides a static snapshot of processes sorted by CPU usage, but it does not update in real time. The 'lsof' command is used to list open files and the processes that opened them, not to monitor CPU usage. The 'cat /proc/cpuinfo' command displays static information about the CPU hardware, not real-time process activity.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What additional details can the 'top' command provide aside from CPU usage?
Open an interactive chat with Bash
How does 'top' differ from 'ps aux --sort -%cpu' when monitoring processes?
Open an interactive chat with Bash
When might the 'lsof' command be useful if not for monitoring CPU usage?