Disk space:

Disk space is an informal term for the amount of computer data storage available on one or more storage devices, file systems, disk partitions, volumes, or logical disks. Disk space is typically measured in units of measurement based on the byte.

Linux command to check disk space:

The disk space can be checked by using the following command in Linux.

df command – Shows the amount of disk space used and available on Linux file systems.

To check the disk space, Open the terminal and type the following command to check disk space.

The basic syntax for df is: df [options] [devices]

Type:

df
df -H

Output:

[tutorial@linux~]$df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 103117024 14131348 84773336 15% /
devtmpfs 7426680 0 7426680 0% /dev
tmpfs 7435796 51516 7384280 1% /dev/shm
tmpfs 7435796 675628 6760168 10% /run
tmpfs 7435796 0 7435796 0% /sys/fs/cgroup
/dev/sdb1 31440900 5305976 26134924 17% /home
/dev/sdc 10475520 49724 10425796 1% /common_pool
[tutorial@linux~]$df -H
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 106G 15G 87G 15% /
devtmpfs 7.7G 0 7.7G 0% /dev
tmpfs 7.7G 53M 7.6G 1% /dev/shm
tmpfs 7.7G 692M 7.0G 10% /run
tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup
/dev/sdb1 33G 5.5G 27G 17% /home
/dev/sdc 11G 51M 11G 1% /common_pool
[tutorial@linux~]$

 

Tagged in:

,