117-010 · Question #37
Which command will display running process information in real time?
The correct answer is A. top. See the full explanation below for the reasoning.
Question
Which command will display running process information in real time?
Options
- Atop
- Bshow current
- Cps current
- Dprocess
How the community answered
(50 responses)- A72% (36)
- B8% (4)
- C4% (2)
- D16% (8)
Community Discussion
4A is correct. The top command is the standard Linux/Unix utility that continuously refreshes and displays real-time process information, including CPU usage, memory consumption, PID, and process state, right in your terminal. The other options are not real commands, "show current" and "ps current" are not valid syntax, and "process" by itself does nothing useful on a Linux system. If you want a snapshot instead of live output, ps is the command for that, but for real-time monitoring it is top, full stop.
top is correct, it refreshes process stats live in the terminal.
Right, though htop gives you the same live view with color, mouse support, and easier kill/renice without needing to remember keystrokes.
top is the classic one here, been using it since my first Linux lab and it updates every few seconds by default so you can watch CPU and memory change live. Quick question though, do you know what the difference is between top and htop, like is htop just a fancier version or does it actually show different data?