Contents
How to check disk usages on CentOS operating system?
How you can check and monitor the disk usages on CentOS operating system is shown in this tutorial. Most commonly used commands for checking disk spaces or usage or free spaces are df, du and free. The use of these commands with various options are shown in this section.
How to find free disk space and analyze disk usage?
In particular fsview is a very nice GUI. I like how it organizes the disk usage visually. It’s actually a KDE application (a plugin to Konqueror) but runs just fine under GNOME. It’s typically part of a package called kdeaddons, and shows up in the Applications menu as “File System Viewer” under Accessories.
What is the df command in CentOS used for?
df command is used to get the details disk spaces information of the file system. Here, df stands for d isk f ilesystem. Many options can be used with this command to check the disk space related information in different ways.
Which is the best command to check disk space?
Most commonly used commands for checking disk spaces or usage or free spaces are df, du and free. The use of these commands with various options are shown in this section. df command is used to get the details disk spaces information of the file system.
How to check the percentage of disk space?
Now all you need to do is write a script to see if the percentage of space is >= 90% (download script ): Save and install script as cronjob. Copy script to /etc/cron.daily/ (script downolad link)
Is there a script to monitor disk space usage?
Show Posts Some times my disk space is used upto 100% due to the application logs . So this script is to monitor the disk space usage and wall message to the users about the disk space usage if it exceeds the limit set in the script. Here for example the limit is set to 80%.
Is there a shell script to check disk space?
In this tutorial, I will show you a simple shell script that checks the used space on all mounted devices and warns if the used space is more than a threshold. Below shell script output the percentage disk space used.