LFCA practice question 9 of 15
A host seems to be running slowly. What command would help diagnose which processes are using system resources?
Full set: 60 questionsDomain System Administration Fundamentals
The top command provides a dynamic, real-time view of a running system. It displays a list of the most resource-intensive processes managed by the kernel, sorted by CPU usage by default. This allows an administrator to immediately identify which specific processes are consuming significant CPU, memory, or other resources, which is the primary task when diagnosing a slow system. The interactive nature of top also allows for sorting by different metrics and sending signals to processes directly from its interface.
A. df: Reports file system disk space usage, not the resource consumption of running processes.
B. free: Shows the total amount of used and free system memory, but does not break it down by process.
C. uptime: Displays system load averages and runtime, indicating high load but not identifying the specific processes causing it.
1. procps-ng top manual page: The official manual page for the top command states, "The top program provides a dynamic real-time view of a running system. It can display system summary information as well as a list of processes or threads currently being managed by the Linux kernel."
Source: man 1 top, available in any standard Linux distribution or online via The Linux man-pages project.
2. Red Hat Enterprise Linux 8 Documentation: In the "Monitoring and managing system status and performance" guide, top is presented as a key utility for monitoring processes. Section 2.3, "Monitoring CPU usage," explicitly details using top to "display a list of processes that are running on a system" and identify those with high CPU usage.
Source: Red Hat Customer Portal, Configuring and managing system resources, Chapter 2. Monitoring and managing system status and performance, Section 2.3.
3. MIT OpenCourseWare, "The Missing Semester of Your CS Education": Lecture 6, "Profiling and Debugging," introduces tools for system inspection. The lecture notes highlight top and its more user-friendly alternative htop as primary tools for "inspecting processes" and understanding resource utilization in real-time.
Source: MIT Missing Semester, Lecture 6: Profiling and Debugging, Section: "Resource Monitoring".
4. Ubuntu Server Guide: The chapter on "System Monitoring" describes top as a fundamental tool. It states, "The top program is a great way to see what your system is doing in real time... It displays a listing of the most CPU-intensive tasks on the system."
Source: Ubuntu Server Guide, System Monitoring, Section: "Processes".
Keep practicing
Take the free LFCA practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other LFCA practice questions
- Question 1Which measures can be taken to prevent unauthorized access to cloud instances and service…
- Question 2Which of the following is considered a best practice for hardening SSHD?
- Question 3An IT team needs to synchronize large amounts of data between two nodes on the company’s …
- Question 4Which of the following commands can be used to lock a user’s account so that they cannot …
- Question 5Which of the following best describes serverless computing?
- Question 6A server on the network is unreachable. What is the best method to verify connectivity be…
