LPIC-2 Exam 201 (Linux Engineer) — Question 52
Which of the following commands by default provides the PIDs of the processes sorted by which are using the most CPU cycles on the Linux system?
Answer options
- A. top
- B. uptime
- C. ps aux
- D. vmstat
- E. freemem
Correct answer: A
Explanation
The correct answer is 'top' as it provides a dynamic, real-time view of processes, sorted by CPU usage. The 'uptime' command shows how long the system has been running; 'ps aux' lists all processes but does not sort them by CPU; 'vmstat' reports information about processes, memory, paging, block IO, traps, and CPU activity; and 'freemem' is not a standard command in Linux.