Top command skills you have to know

Top command skills you have to know

On the Linux operating system, the top command is mainly used to display the dynamics of the process in real time.

Then, the following skills that you don't know can greatly improve your work efficiency.

Execute the command in the terminal: top, and then press a key on the keyboard, the top command will have different effects for display;

1: Display the running status of each CPU. You can see how many CPUs there are on the device. If there are more devices, the entire screen will be occupied;

z: Enter the highlight mode, the red terminal font will be displayed. Press z again to restore to the original terminal font;

b: Highlight the running command, s is the process of R;

c: Display all information in the COMMAND column, including some parameters;

t: Display task/cpu information in a more intuitive way;

m: display mem information in a more replacement way;

M: Sort according to memory usage. %MEM column.

P: Sort according to CPU usage. %CPU column.

Guess you like

Origin blog.51cto.com/15067236/2606386