Resource Monitoring(Linux)

Hello Friends, In this post I’ll tell you how to monitor Linux system in.

Note: If any tool is not found in your linux system, install it by: apt-get install <tool-name> and if you are not understanding any tool use -h or –help flag for more options, or use man <tool-name>

1. Checking available/consumed disk spaces

By using df tool we can see that our used and unused spaces of all devices.

# df -h
2. Checking size of all directories and files

By using du tool we can see the size of all directories and files.

# du -sh *
3. Checking current memory usage of the system(RAM).

By using free tool, we can see our total consumed and free memory spaces.

# free -h
4. Checking all mount on the system.

By using mount tool, we can see the all mounted device.

# mount
5. Monitoring memory, cpu, swap and etc. usage.

By using top command we can monitor live usage of programs.

# top
6. View live process and kill

By using htop tool, we can view live runnng process and kill at a time using F9 key.

# htop
7. Advanced System and Process monitor

By using this tool, we can see an interactive monitor to view the load on a Linux system.

# atop
8. Monitoring disk read/write operations by process in real-time.

By using this tool, we can see live process of writing or reading of any data, for example: first run iotop after that open any editor and write some text and save it, after that you’ll see it is showing on iotop monitor.

# iotop

This all tool are very handy and easy to use for monitoring purpose, Comment below if you are facing any problem.

Leave a Reply

Your email address will not be published. Required fields are marked *