Spread the love

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 
df
Code language: PHP (php)
what is df command in linux
what is df command in linux

01 – Here is How to check the disk space in Human-Readable format:

# Using df with a human readable format
df -h
Code language: PHP (php)
df command in linux sort by size
df command in linux sort by size

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 –total
Code language: PHP (php)
df command folder size
df command folder size

03 – Here is How to exclude a particular file system type:

# Exclude a particular file system type
df -x tmpfs
Code language: PHP (php)
df command to exclude a file system type
df command to exclude a file system type

Here is a quick video review:

We hope you enjoyed this article. if that is so please rate this page with the stars bellow and subscribe to our YouTube channel.

Leave a Reply