A Linux systems administrator receives an alert that a web server is responding slowly. Upon logging in, the administrator runs the uptime command and notices a very high load average. Suspecting a process is consuming excessive CPU resources, which of the following commands should the administrator run to get a real-time, sorted list of processes to quickly identify the one with the highest CPU utilization?
The correct command is top. The top command provides a dynamic, real-time view of a running system and displays a list of processes or threads currently being managed by the kernel. By default, this list is sorted by CPU usage, making it the most direct and effective tool for identifying a process that is causing high CPU utilization.
The iostat command is used for monitoring system input/output device loading and is not the primary tool for identifying CPU-bound processes.
The free -h command displays the amount of free and used memory in the system in a human-readable format, but it does not provide information about CPU usage by individual processes.
The ps aux --sort=-%mem command lists all running processes but sorts them by memory usage, not CPU usage. While useful for memory issues, it does not directly address the immediate need to find the top CPU consumer.
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 information does the `top` command provide besides CPU usage?
Open an interactive chat with Bash
How does the `iostat` command differ from `top` in terms of functionality?
Open an interactive chat with Bash
When would it be more appropriate to use `ps aux` instead of `top`?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Troubleshooting
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access