How can I view disk partitions in CentOS?

In CentOS system, you can use the following command to view disk partitions:

  1. List block devices
lsblk
  1. ndf
df -h
  1. fdisk is a disk partitioning utility.
fdisk -l

Note: Executing the above command requires root or sudo privileges.

广告
Closing in 10 seconds
bannerAds