How to Check Disk Space in Linux with df Command

How to Check Disk Space in Linux with df Command

 

Hello colleagues.

In today's article, I will tell you how to check disk space in Linux.

The df command stands for Disk File System and is used to get a complete summary of the available and used disk space usage of a file system on a Linux system.

The content of the article:

  1. df command
  2. How to use df

 

1. df command

The df command comes by default on all Linux distributions and has a very simple syntax.

  • -a, --all - display all file systems;
  • -B - change the size of one block before outputting data;
  • -h - display sizes in readable form, in megabytes or gigabytes;
  • -H - display all sizes in gigabytes;
  • -i - display inode information;
  • -k - display sizes in kilobytes;
  • --total - display all information about the used and available space;
  • -t, --type - display information only about the specified file systems;
  • -x - display information about all;

 

2. How to use df

To view the available space on all mounted partitions, use the command:

$. df


To see everything in a more readable way, use:

$. df -h


READY!

Thank you all, I hope my article was of some help to you.

 

SIMILAR ARTICLES

mv command in linux. Moving/Renaming files.
mv command in linux. Moving/Renaming files.
TERMINAL
Read more
tail command in linux. View the last lines of a file.
tail command in linux. View the last lines of a file.
TERMINAL
Read more
Linux command cal, calendar
Linux command cal, calendar
TERMINAL
Read more