Site icon LinuxCommands.site

df command tutorial in linux/unix with examples and use cases

linux df command – report file system disk space usage

linux df command displays the amount of disk space available on the file system containing each file name argument.  If no file name is given, the space available on all currently mounted file systems is shown. 

If you need to check the file or folder storage space, you can use the linux du command.

Syntax

 df [OPTION]... [FILE]...

Options

Examples & Use Cases

Show disk space available

In the following example, we will use the df command to display disk free space in a human-readable manner.

➜  df -h

Show disk free space in GB

In the following example, we use the df -BG option to display disk free space in GB.

➜  df -BG

Exit mobile version