A system is experiencing high CPU usage. The administrator suspects a process is stuck in an infinite loop. Which command can be used to identify the most CPU-intensive process in real-time?
Trap 1: lsof
lsof lists open files, not CPU usage.
Trap 2: ps aux
ps aux shows a snapshot of processes but does not update in real-time.
Trap 3: strace
strace traces system calls and signals, not a simple CPU usage monitor.
- A
top
top displays real-time process activity and can sort by CPU usage.
- B
lsof
Why wrong: lsof lists open files, not CPU usage.
- C
ps aux
Why wrong: ps aux shows a snapshot of processes but does not update in real-time.
- D
strace
Why wrong: strace traces system calls and signals, not a simple CPU usage monitor.