Check Linux Disk Space: Size & Free Space Guide

To view the size of your hard drive and available space, you can use the following command:

  1. Check the size of the hard drive:
df -h

This command will display information about all the hard drives in the system, including total size, used space, available space, and mount points.

  1. Check the size of a specific hard drive:
df -h /dev/sda

Replace /dev/sda with the device name of the hard drive you want to view.

  1. Check the detailed information of the hard drive.
fdisk -l

This command will display detailed information about all hard drives, including partitions and file system types.

With these commands, you can easily check the size and available space of your hard drive.

bannerAds