[root@fc21 ~]# cat /usr/local/sbin/disk #!/bin/bash /bin/df -t ext4 -m | awk {'print $5'} | tail -1 [root@fc21 ~]# disk 10%
A Linux blog by ioMeWeekly, includes tutorials, news, help, programming, tips and how-to guides for opensource applications.
Showing posts with label disk. Show all posts
Showing posts with label disk. Show all posts
Monday, 19 January 2015
Monitoring diskspace
To monitor the amount of hdd space used in the system, we can use df. Below script display the percentage the disk is used.
Subscribe to:
Posts
(
Atom
)