Hit the top command with htop

What do you guys use when checking CPU load on Linux? ?? I think there are various things such as vmstat, mpstat, and external tools, but the one that can be checked for each process is top. I thought " top is great! Convenient !! ", but I found this article.

"Top" is outdated! ?? Let's use "htop" from now on!

Yeah, isn't htop upward compatible! Moreover, the Raspberry pi OS comes standard with the lite configuration, so there is no reason not to use it.

Impressions

It's very easy to use, just type htop. And the display is as follows. 175051.png That's right. The usage rate of each CPU core is graphed. This is easy to see, adopted! !!

htop -h The options are as follows.

-C --no-color               Use a monochrome color scheme #Display in monochrome
-d --delay=DELAY            Set the delay between updates, in tenths of seconds #Set update interval (1)/10 seconds)
-h --help                   Print this help screen #Show this screen
-s --sort-key=COLUMN        Sort by COLUMN (try --sort-key=help for a list) #Sort by column
-t --tree                   Show the tree view by default #In tree view
-u --user=USERNAME          Show only processes of a given user #Limited to the process of the specified user
-p --pid=PID,[,PID,PID...]  Show only the given PIDs #Limited to processes with specified PID
-v --version                Print version info #Show version

Please refer to man htop for details, although there is a detailed explanation at the bottom of the screen during execution.

Summary

Although there is some information that has been deleted, there are plenty of functions such as filters that seem to be useful. The graphical display is easy to see, so I would like to use it frequently. As some of you may know, I haven't seen many articles like this, so I've summarized them.

Thank you for reading! ~~ It makes me feel better when I see LGTM attached (laughs) ~~

Recommended Posts

Hit the top command with htop
Check the operating status of the server with the Linux top command
Hit the Etherpad-lite API with Python
top command
Ask for Pi with the bc command
Try rewriting the file with the less command
Extract the TOP command result with USER and output it as CSV
Adjust file permissions with the Linux command chmod
The story of misreading the swap line of the top command
Linux: Understand the information displayed by the top command
How to delete the specified string with the sed command! !! !!
The story of stopping the production service with the hostname command
Hit the Twitter API after Oauth authentication with Django
About the service command
Extract files from EC2 storage with the scp command
When the variable name conflicts with the Devaga command in pdb
How to return to the previous directory with the Bash cd command
Get UNIXTIME at the beginning of today with a command
Let's execute the command on time with the bot of discord
Check the memory status of the server with the Linux free command
Insert the debugger with nose
Kill the process with sudo kill -9
Clone using the dd command
Speed up the netstat command
Guess the password with klee
scraping the Nikkei 225 with playwright-python
Calibrate the model with PyCaret
Until the shell finds the command
Call the API with python3.
Encryption / decryption with GPG command
Use single quotes without escaping with the AWS Redshift UNLOAD command
Check the HTTP status code response with the curl command (#Linux #Shell)
Hit the echo command in the Mac terminal to output Hello World
How to make a command to read the configuration file with pyramid
Grant an access token with the curl command and POST the API
Check server I / O device usage with the Linux iostat command
How to monitor the execution status of sqlldr with the pv command