How to check the total size of the hard disk in CentOS?

You can use the following command to view the total size of the hard drive in a CentOS system:

  1. To sum it up
  2. Can you please explain that again in English?
df -h
  1. list block devices
lsblk

These commands will display all the mount points and related information in the system, including the size of the hard disks. Please note that these commands need to be run under a user with administrator privileges, or prefixed with sudo.

bannerAds