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...
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...
Partitiontableentries arenotindiskorder. 想了解fdisk命令的更多用法和例子,请参阅《管理分区的10个fdisk命令实例》(http://www.tecmint.com/fdisk-commands-to-manage-linux-disk-partitions/)。 2. sfdisk(用于脚本环境的fdisk)命令 sfdisk用起来比较像fdisk,它可打印输出或者处理存储磁盘分区表。然而,sfdisk提供了...
Step 1Create a partition of the diskFirstly, connect the disk to your Linux system if you haven't already and launch the Terminal window on it. You can enter the following command to check it:sudo fdisk –l.Now, to create a partition, enter the command "fdsk" in the following format:...
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: ...
command's log report lvchange Change the attributes of logical volume(s) lvconvert Change logical volume layout lvcreate Create a logical volume lvdisplay Display information about a logical volume lvextend Add space to a logical volume lvmchange With the device mapper, this is obsolete and does ...
测试成功后,修改NRPE配置文件“nrpe.cfg”,更新“command[check_df]”所在的文本行,其完整内容如下: command[check_df]=/usr/local/nrpe/libexec/check_disk -w 20% -c 10% -X tmpfs -x /dev 重启NRPE服务,片刻观察Centreon Web管理后台,磁盘监控项目的输出缩短了,看起来更加清晰明了。
Let’s check for unallocated space using thepartedcommand. We need to run this command as a root user or a user withsudoprivileges: $ sudo parted /dev/sda print free Model: ATA GOLDEN MEMORY-25 (scsi) Disk /dev/sda: 256GB Sector size (logical/physical): 512B/512B ...
Total PE / Free PE 392 / 392 [root@root~]# vgextend /dev/vg0 /dev/mapper/mpathc Volume group "vg0" successfully extended [root@root~]# vgdisplay -v /dev/vg0 Using volume group(s) on command line Finding volume group "vg0" ...
(parted) help align-check TYPE N check partition N for TYPE(min|opt) alignment help [COMMAND] print general help, or help on COMMAND mklabel,mktable LABEL-TYPE create a new disklabel (partition table) mkpart PART-TYPE [FS-TYPE] START END make a partition name NUMBER NAME name partition ...