Home  >  Article  >  Operation and Maintenance  >  How to see which partitions there are in centos7

How to see which partitions there are in centos7

WBOY
WBOYOriginal
2022-04-02 11:32:428472browse

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.

How to see which partitions there are in centos7

The operating environment of this article: centos 7 system, Dell G3 computer.

How to see which partitions there are in centos7

1. blkid -o list

To view all current disk partitions, we can use the blkid -o list command :

How to see which partitions there are in centos7

2. fdisk -l

fdisk -l can display all mounted and unmounted partitions, but Do not display the file system type

How to see which partitions there are in centos7

3, cfdisk /dev/sda

How to see which partitions there are in centos7

4. Use the lsblk command to view partitions and disks

How to see which partitions there are in centos7

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn