This article will help you to understand what is the use of DF command in Linux and how to use DF command with multiple options. The DF (Disk Free) command is a built in utility to find the available and the disk usage space on Linux servers/storage. This command is used by all the System Administrators, as it is one of their main tasks to monitor the server/storage space.
This tutorial will help you how to use DF command in Linux with options and examples. All the below examples are tested on Ubuntu 20.04 LTS.
Here is the default check for details of disk space used in each file system:
# Default check of disk space in each file system dfCode language: PHP (php)
01 – Here is How to check the disk space in Human-Readable format:
# Using df with a human readable format df -hCode language: PHP (php)
02 – Here is How to sum up the total of the disk space usage:
# How to sum up the total disk space usage df -h –totalCode language: PHP (php)
03 – Here is How to exclude a particular file system type:
# Exclude a particular file system type df -x tmpfsCode language: PHP (php)