nerdexam
Exams010-160Questions#5
LPI

010-160 · Question #5

010-160 Question #5: Real Exam Question with Answer & Explanation

The correct answer is B: Running processes, ordered by CPU or RAM consumption.. The top command is a real-time process viewer that displays running processes sorted by resource usage such as CPU or memory.

The Power of the Command Line

Question

What information can be displayed by top?

Options

  • AExisting files, ordered by their size.
  • BRunning processes, ordered by CPU or RAM consumption.
  • CUser accounts, ordered by the number of logins.
  • DUser groups, ordered by the number of members.
  • EUser accounts, ordered by the number of files.

Explanation

The top command is a real-time process viewer that displays running processes sorted by resource usage such as CPU or memory.

Common mistakes.

  • A. Listing files by size is done with commands like ls -lS or du, not top, which is strictly a process monitor.
  • C. User account login history is queried with commands such as last or lastlog, not top.
  • D. Group membership information is found in /etc/group or via getent group, not top.
  • E. Counting files owned by user accounts requires tools like find combined with du or custom scripts, not top.

Concept tested. Real-time process monitoring with top

Reference. https://man7.org/linux/man-pages/man1/top.1.html

Topics

#top command#process monitoring#system resources

Community Discussion

No community discussion yet for this question.

Full 010-160 Practice