Method #1: Use the df Command to Check the Disk Space in Linux Thedfcommand is one of the easiestways to check disk space usageand available block size. Launch the terminal and enter the following command: # df As you can see, thedfcommand, which stands for disk free, displays how muc...
-w, --warning=INTEGER Exit with WARNING status if less than INTEGER units of disk are free -w, --warning=PERCENT% Exit with WARNING status if less than PERCENT of disk space is free -c, --critical=INTEGER Exit with CRITICAL status if less than INTEGER units of disk are free -c, --...
[ You may also be interested in downloading theCurl command cheat sheet. ] Use df It's a good idea to use thedfcommand regularly to monitor usage on critical mount points. These are the ways I typically use the command, so find your favorite options and start gathering data about your ...
sfdisk – Check Linux Disk Partition Table Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors Units: sectorsof1 * 512 = 512 bytes Sectorsize(logical/physical): 512 bytes / 4096 bytes I/Osize(minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: 8221...
sfdisk – Check Linux Disk Partition Table 复制 Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectorsUnits: sectorsof1 * 512 = 512 bytesSectorsize(logical/physical): 512 bytes / 4096 bytesI/Osize(minimum/optimal): 4096 bytes / 4096 bytes ...
Linux_Comand - Check disk space df -h du -sh Delete folder older than 30 days find /path -name "test-*" -type d -mtime +30 -exec rm -rf {} \;
How to Check Disk Space in Linux Using the df Command Thedfcommand, short for disk free, is a standard Unix command used to display the amount of available disk space on file systems. The basic syntax of thedfcommand is as follows: ...
Learn how to check your disk space usage on a Linux Dedicated server or a VPS machine using the Linux df command. Easy space monitoring for your system.
Exit with CRITICAL status if less than PERCENT of inode space is free -p, --path=PATH, --partitinotallow=PARTITION Mount point or block device as emitted by the mount(8) command (may be repeated) -x, --exclude_device=PATH <STRING> ...
2)Alarm Callbacks类型告警模板 Bash Command 内容为:/opt/ServerDisk_Request.sh ${gl2_remote_ip} 其中/opt/ServerDisk_Request.sh 实现推送到钉钉群机器人 调用webhook执行查看磁盘使用情况的shell脚本 aaa 记得给graylog系统用户添加到sudoers用户中 8、接下来配置磁盘满的告警 ...