How to check the disk size on Ubuntu system?

You can check the hard drive size in the Ubuntu system using the following command:

  1. Open the terminal by pressing Ctrl + Alt + T.
  2. Enter one of the following commands to view the size of all hard drives:
df -h

This command will display all mounted file systems along with their sizes, used space, and available space. If you only want to view the size of a specific disk, you can use the following command:

df -h /dev/sdX

Replace “/dev/sdX” with the device name of the hard drive you want to view, such as “/dev/sda”.

bannerAds