Where Notes Work
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
![](https://procoder.in/wp-content/uploads/2021/03/df.png)
2. Checking size of all directories and files
By using du tool we can see the size of all directories and files.
# du -sh *
![](https://procoder.in/wp-content/uploads/2021/03/du.png)
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
![](https://procoder.in/wp-content/uploads/2021/03/free.png)
4. Checking all mount on the system.
By using mount tool, we can see the all mounted device.
# mount
![](https://procoder.in/wp-content/uploads/2021/03/mount-1024x220.png)
5. Monitoring memory, cpu, swap and etc. usage.
By using top command we can monitor live usage of programs.
# top
![](https://procoder.in/wp-content/uploads/2021/03/top.png)
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
![](https://procoder.in/wp-content/uploads/2021/03/htop-1024x510.png)
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
![](https://procoder.in/wp-content/uploads/2021/03/atop-1024x513.png)
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
![](https://procoder.in/wp-content/uploads/2021/03/iotop.png)
This all tool are very handy and easy to use for monitoring purpose, Comment below if you are facing any problem.