df's Examples

Check Linux Disk Space Using df Command

df

Display Usage in Megabytes and Gigabytes

df -h

Display a Specific File System

df -h /dev/sda2
df -h /

Display File Systems by Type

df -ht ext4

Display Size in 1000 Instead of 1024

du -H

Check Disk Space in Linux With du Command

du

Check Disk Space in Linux With du Command

 du human-readable

du -h

Check Disk Space in Linux With du Command

This shows how much space the current directory uses.

du -hs

Check Disk Space in Linux With du Command

du -hs /etc/kernel-img.conf

Display Information of File System in MB

df -m

 Display File System Inodes

df -i

Display File System Type

df -T

Include Certain File System Type

df -t ext3

Exclude Certain File System Type

df -x ext3

Display Information of df Command.

df --help

this command is used to display information related to file sustems about total space availabel

1) $ df filename

display all standard file systems on your computer

$ df -a

finds  information of a specific file

$df /first_number/ numbers.txt

shows information about inodes input

$ df -i numbers.txt

shows  the file system type

$ df -T numbers.txt

shows the grand total of the file 

$ df --total numbers.txt

exclude the file system types

 

$ -x xfs numbers.txt

print sizes in humna readable format

 

$ df -h numbers.txt

output version information

$ df -- version

use the POSIX outpur format

$df -P file.txt

DevOpsSchool
Typically replies within an hour

DevOpsSchool
Hi there 👋

How can I help you?
×
Chat with Us