Display the Amount of Available Disk Space
The df
command is used to display the amount of available disk space on a Linux system. It can be used to check the available space on a specific partition, or to check the overall space available on all partitions.
Here is an example of using df
to check the all available space:
df -h
The -h
is a command-line option that tells df
to display the available space in a human-readable format.
df
command can also be used to check the available space on a specific partition. Here is an example of using df
to check the available space on the /dev/sda2
partition:
df -h /dev/sda2
This command will display the available space on the /dev/sda2
partition in a human-readable format.