📅  最后修改于: 2023-12-03 15:01:19.592000             🧑  作者: Mango
htop
is an interactive process monitoring tool for Linux/Unix systems that provides users with a clear view of the processes currently running on their system.
With htop
, users can view a list of all running processes, along with their individual resource consumption statistics, including memory usage and CPU utilization.
Some of the key features of htop
include:
To use htop
, simply run the command htop
in your terminal. The process list will be displayed, along with a header row that shows the current system usage statistics.
Use the arrow keys to navigate through the list of processes, and press Enter
to view the detailed information for a specific process.
To sort the list based on a particular column, press the F6
key, and choose the desired column from the menu.
To customize the display settings, press the F2
key, which will bring up an options menu. Use the arrow keys to navigate through the various settings and make changes as desired.
To kill a process, select it in the list and press F9
, which will prompt you to confirm the action.
htop
is available on most Linux/Unix distributions, and can be installed using the default package manager for your system.
For example, on Debian-based systems, such as Ubuntu, you can install htop
using the following command:
sudo apt-get install htop
On RedHat-based systems, such as Fedora, use the following command:
sudo yum install htop
Alternatively, you can download the source code and build htop
from scratch using the following commands:
wget https://hisham.hm/htop/releases/2.2.0/htop-2.2.0.tar.gz
tar xzf htop-2.2.0.tar.gz
cd htop-2.2.0
./configure
make
sudo make install
htop
is a powerful process monitoring tool that provides users with a clear view of the current system usage statistics. With its interactive interface and customizable display settings, it makes it easy to manage and monitor the processes running on your system.