CompTIA Server+ (SK0-005)Server AdministrationEasy
A server administrator is troubleshooting a Linux server that is experiencing intermittent performance issues. Users report slow response times, and the server occasionally becomes unresponsive. The administrator suspects high CPU or memory utilization. Which command should the administrator use to get a real-time, interactive view of running processes and resource consumption?
- Anetstat -tuln
- Btop
- Cdf
- Dps -ef
Show answer & explanationAnswer & explanation
Correct answer: B. top
The `top` command provides a dynamic, real-time view of a Linux system's running processes. It displays CPU, memory, and swap usage, as well as a list of processes ordered by CPU usage, making it ideal for identifying resource bottlenecks.
Why the other options are wrong
- A. `netstat -tuln` displays network connections and listening ports, not CPU or memory consumption by processes.
- C. `df` (disk free) shows disk space usage, not CPU or memory utilization.
- D. `ps -ef` lists all running processes but provides a static snapshot, not a real-time, interactive view.
Linux 'top' Command
A command-line utility that provides a dynamic, real-time view of running processes and system resource usage on Linux.
- Displays CPU, memory, and swap usage.
- Lists processes by resource consumption.
- Interactive, allows sorting and killing processes.
Memory trick: Topping the charts shows who's busy.