1. top is a common monitoring program in Linux. htop is equivalent to its enhanced version. Different parameters are displayed in color and mouse operations are supported.
I used to use top to view the system. Now I found a top Upgrade Program-htop. In addition to function enhancements, it supports mouse operations. Main differences between top and htop:
In 'htop' you can scroll the list vertically and horizontally to see all processes and complete command lines.
In 'top' you are subject to a delay for each unassigned key you press (especially annoying when multi-key escape sequences are triggered by accident ).
'Htop' starts faster ('top' seems to collect data for a while before displaying anything ).
In 'htop' you don't need to type the process number to kill a process, in 'top' you do.
In 'htop' you don't need to type the process number or the priority value to renice a process, in 'top' you do.
'Htop' ororts mouse operation, 'top' doesn' t
'Top' is older, hence, more used and tested.
2. Install htop in Ubuntu
3. Use htop software (main menu)
F1 help information (mouse supported)
Remember the common shortcut keys, such as t s p m h k.
F2 some settings (this is relatively simple)
F3 can be searched to find out which process F5 is the above shortcut key t F6 is the basis for selecting process sorting (the default is CPU usage)
F7 F8 can directly modify the priority of the selected Process
F9 can kill the process directly.
PS 1: select the process and press the shortcut key s to install the strace process.
To sum up one sentence, this software is very easy for everyone to know that the decision is better than the top
Replace the top
Edit the/root/. bashrc file:
Add the following code:
If [-f/usr/local/bin/htop]; then
Alias top = '/usr/local/bin/htop'
Fi