A FDISK command
FDISK is a disk partitioning command that uses detailed commands to view related documents
Use the command fdisk-l to view the current disk's partition status,
Fdisk-l
[[email protected] ~]# fdisk -ldisk /dev/sda: 21.5 gb, 21474836480 bytes255 heads, 63 sectors/track, 2610 cylindersunits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (Minimum/optimal): 512 bytes / 512 bytesdisk identifier: 0x00050ad5 device boot Start End Blocks Id System/dev/sda1 * 1 26 204800 83 linuxpartition 1 does not end on cylinder boundary./dev/sda2 26 287 2098176 82 linux swap / solarispartition 2 does not end on cylinder boundary./dev/sda3 287 2611 18667520 83 linux
Two DF command
DF is from the Coreutils software package, the system is installed, it comes with, we can use this command to see the disk usage and the location of the file system is mounted;
Example:
Df-h
[Email protected] ~]# df-hfilesystem Size used Avail use% mounted On/dev/sda3 18G 1.5G 16G 9%/TMPFS 497M 0 497M 0%/dev/shm/dev/sda1 190M 27M 153M 15%/boot
We can see the capacity of the disk, used, usable, percentage used, and the mount point of the disk partition
For other parameters refer to man DF also can be viewed.
This article is from the "I am a Little bird" blog, please make sure to keep this source http://liyanchao.blog.51cto.com/9954601/1659901
Linux fdisk under Disk View command sharing is simple