Back
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 DiskDisk /dev/sda: 250.0 GB, 250058268160 bytes
[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?
You should use the
df -h$ man dfdf - report file system disk space usage
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% -
$ df -h --total
...
total 135G 79G 51G 61% -
Want to be a Linux expert? Come and join this Linux course
31k questions
32.8k answers
501 comments
693 users