0
0
Linux CLIscripting~5 mins

top and htop (live monitoring) in Linux CLI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the top command in Linux?
The top command shows a live, updating list of running processes and system resource usage like CPU and memory.
Click to reveal answer
beginner
How does htop improve on top?
htop provides a colorful, interactive interface with easier navigation and process management using keyboard shortcuts.
Click to reveal answer
intermediate
Which key do you press in htop to kill a selected process?
Press F9 to kill the selected process in htop.
Click to reveal answer
intermediate
How can you sort processes by memory usage in top?
Press M (uppercase) while top is running to sort processes by memory usage.
Click to reveal answer
beginner
What command do you use to install htop on Ubuntu?
Use sudo apt install htop to install htop on Ubuntu.
Click to reveal answer
Which command shows a live list of running processes in Linux?
Acd
Bls
Ctop
Dmkdir
What feature does htop provide that top does not?
AListing files
BInteractive process management
CChanging directories
DCreating files
In top, which key sorts processes by CPU usage?
AP
BM
CK
DQ
How do you exit the top command?
AF10
BCtrl+C
CEsc
DQ
Which command installs htop on Debian-based systems?
Asudo apt install htop
Bsudo yum install htop
Csudo pacman -S htop
Dsudo dnf install htop
Explain how to use top to monitor system processes and sort them by memory usage.
Think about the keys you press while top is running.
You got /4 concepts.
    Describe the advantages of using htop over top for live monitoring.
    Focus on usability and features.
    You got /4 concepts.