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...
You can read about the available field options on theinfopage and themanpage. [ 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 ...
If you wish to view the disk usage of your Linux system the df command is quite useful. In this article, we’ll list several usages of the Linux df command. Basic df usage This will list blocks, used and available disk usage in a human-readable format df -h Show inodes with df df ...
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 ...
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:...
Command (m for help): p Disk /dev/vdb: 42.9 GB, 42949672960 bytes, 83886080 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x9277b47b ...
Used. The amount of space used. Avail. The amount of available space. Use%. The percentage of space used. Mounted on. The mount point of the file system. How to Check File Space Usage in Linux Using the du Command Thedu, or disk usage command, estimates file space usage in Linux. ...
Command (m for help): m //输入m列出常用的命令 Help: DOS (MBR) a toggle a bootable flag //切换分区启动标记 b edit nested BSD disklabel //编辑sdb磁盘标签 c toggle the dos compatibility flag //切换dos兼容模式 Generic d delete a partition //删除分区 F list free unpartitioned space //...
(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 ...
Command (? for help): p # 这里可以输出目前磁盘的状态 Disk /dev/vda: 83886080 sectors, 40.0 GiB # 磁盘文件名/扇区数与总容量 Logical sector size: 512 Bytes # 单一扇区大小为 512 Bytes Disk identifier (GUID): A4C3C813-62AF-4BFE-BAC9-112EBD87A483 # 磁盘的 GPT 识别码 Partition table ...