Home >Operation and Maintenance >CentOS >How to see which partitions there are in centos7
Method: 1. Use the "blkid -o list" command to view all partitions; 2. Use the "fdisk -l" command to display all mounted and unmounted partitions; 3. Use "cfdisk /dev/sda" to view partitions; 4. Use the "lsblk" command to view partitions and disks.
The operating environment of this article: centos 7 system, Dell G3 computer.
1. blkid -o list
To view all current disk partitions, we can use the blkid -o list command :
2. fdisk -l
fdisk -l can display all mounted and unmounted partitions, but Do not display the file system type
3, cfdisk /dev/sda
4. Use the lsblk command to view partitions and disks
Recommended tutorial: "centos tutorial"
The above is the detailed content of How to see which partitions there are in centos7. For more information, please follow other related articles on the PHP Chinese website!