通过Linux Foundation和edX免费提供的 “Linux 简介” 课程,了解更多有关 Linux 的信息。 via:https://www.linux.com/learn/intro-to-linux/2018/6how-check-disk-space-linux-command-line 作者:Jack Wallen选题:lujun9972译者:SunWave校对:wxy 本文由LCTT原创编译,Linux中国荣誉推出...
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...
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 {} \;
Linux commands to check disk space df command: It stands for disk-free, which displays the free and usable space of the Linux file system. du command: provides information about the disk space occupied by the specified files and their subdirectories. btrfs fi df /device/ command: Provides de...
Thedfcommand can be run by any user. Like many Linux commands,dfuses the following structure: df[OPTION]...[FILE]... Thedfcommand primarily checks disk usage on a mounted filesystem. If you don't include a file name, the output shows the space available on all currently mounted filesys...
This will let you know about the disk identifier and the sector space. Subsequently, enter the "n" command to create a new partition. You will be given an option to create a primary or an extended partition. Press "p" to create a new primary partition and give it a number from 1 to...
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.
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: ...
Exit with WARNING status if less than PERCENT of inode space is free -K, --icritical=PERCENT% Exit with CRITICAL status if less than PERCENT of inode space is free -p, --path=PATH, --partition=PARTITION Mount point or block device as emitted by the mount(8) command (may be repeated...
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 ...