How to check the disk size on Ubuntu system?
You can check the hard drive size in the Ubuntu system using the following command:
- Open the terminal by pressing Ctrl + Alt + T.
- 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”.