How to check resource (cpu, memory etc.) usage in MB in Ubuntu?

The familiar command in Ubuntu for checking the current resource usages such as CPU, memory usages is probably the "top" command which shows more or less the following information:


Although it is informative, it is less readable and if you want to quickly have an idea of resource usage, e.g., in MBs, the "htop" should be a useful tool to have. Compared to the "top" command, it shows the information as follows, which is much informative than the earlier one.






How to install htop in Ubuntu?


sudo apt-get update
sudo apt-get install htop