Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)

How can I check the disk space left in the disk? 

In case, I have total disk space as below:

[root@abc ~]# fdisk -l|grep Disk

Disk /dev/sda: 250.0 GB, 250058268160 bytes

How do we find how much is free in this 250GB disk?

1 Answer

0 votes
by (36.8k points)

You should use the

 df -h

$ man df

df - report file system disk space usage

You can add this total option to have this total. For example:

$ df -h --total

...

...

total             135G   79G   51G  61% -

Want to be a Linux expert? Come and join this Linux course 

Related questions

0 votes
1 answer
0 votes
1 answer
asked Dec 16, 2020 in Linux by blackindya (18.4k points)
0 votes
1 answer
asked Dec 15, 2020 in Linux by blackindya (18.4k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories

...