How to check hard disk full details in Linux OS

This blog post will teach you how to check hard disk full details in Linux OS using the df and du commands. You will learn how to view disk space usage, identify the largest directories, and troubleshoot disk space problems.

You can check Hard disk full details by using Five command as shown in below examples with screen shot.

Command to Check hard disk Details. 

1. fdisk :- Display All partition with File System details But it will not show the disk partition size

#fdisk -l

How to check hard disk full details in Linux OS

2. sfdisk -l -uM :- As shown in below image that Output of sfdisk is almost the same as the fdisk, with only one difference is that it

Show size of each partition in MB

#sfdisk -l -uM

How to check hard disk full details in Linux OS

3. parted :- this command let you view the disk partitions details as well as it can modify the partition too.

#parted -l

How to check hard disk full details in Linux OS

4. lsblk : - this command gives you storage blocks including the disk partition and optical drives.

Not only has it given details on the mount points, but the size of the partition.

#lsblk

How to check hard disk full details in Linux OS

5. blkid :- This command show you the file system type and attributes like universal unique identifiers (UUID) of block devices.

#blkid

How to check hard disk full details in Linux OS

Leave a Comment