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 questions

Domain System Administration Fundamentals

Answer options
A: df
B: free
C: uptime
D: lop Correct answer
Correct Answer:
D. lop
Explanation

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.

Why Incorrect

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.

References

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".

Scroll to Top