htop:tldr:adda3
The htop command is used to launch a system monitoring utility in the Linux command-line interface. It provides a more interactive and visually appealing alternative to the traditional top command.
htop displays various information about the system's resources and processes in real-time. It has a user-friendly interface with color-coded columns and graphs. Here are some key features and functionalities of htop:
-
Process Listing:
htoplists all the running processes on the system, including their process IDs (PIDs), CPU usage, memory usage, and the amount of time each process has been running. -
Resource Monitoring: The utility shows real-time usage statistics for CPU, memory, swap memory, network traffic, and disk I/O.
-
Process Control: With
htop, you can interact with individual processes. You can send various signals to a process for management, such as terminating or killing a process. -
Sorting and Filtering: It allows you to sort processes by different criteria such as CPU usage, memory usage, process name, and more. You can also filter processes based on a specific string or criteria.
-
Interactive Interface:
htopprovides an interactive interface where you can navigate and scroll through the process list using keyboard shortcuts. It offers a more intuitive and dynamic view of system status compared to the statictopcommand.
Overall, htop is a powerful command-line tool for monitoring system resources and processes in real-time, aiding in system troubleshooting, performance analysis, and process management.