To install and use the nmon tool for monitoring Linux system performance, follow these steps:
- Install the
nmontool:- On Debian/Ubuntu based systems:
sudo apt-get update
sudo apt-get install nmon
- On Red Hat/CentOS based systems:
sudo yum install nmon
- Run the
nmontool:nmon
- Use the
nmontool:- Use the “h” key to see a list of all the commands you can use.
- Use the “1” key to view CPU usage.
- Use the “2” key to view memory usage.
- Use the “5” key to view disk I/O statistics.
- Use the “q” key to quit the tool.
Note: nmon is an interactive tool and it runs in the terminal, displaying real-time performance statistics of your Linux system.