Install htop on mac

For children's shoes that often use the top command on mac, htop will be a more beautiful and easier to use command. The following are the steps to install htop on mac

1. First go to htop's official website to download, I downloaded the latest version 2.2.0, the URL is https://hisham.hm/htop/releases/2.2.0/ download htop-2.2.0.tar.gz 

2. Switch to your download directory and unzip the file. The unzip command is tar zxvf htop-2.0.2.tar.gz 

3. Switch to the unzipped folder and execute ./configure

4. Execute the command sudo make

5. (Optional) Execute sudo make check command

6. Execute sudo make install command

7. (optional) execute sudo make installcheck

8. The htop command is now ready, just move him to the / bin directory and execute sudo mv htop / bin 

9. At this point, you can delete the unzipped htop folder

 Just execute htop in the terminal, as shown in the figure:

 

Guess you like

Origin www.cnblogs.com/chenshengkai/p/12696404.html