0
0
Linux CLIscripting~5 mins

df (disk free space) in Linux CLI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the df command do in Linux?
The df command shows how much disk space is used and free on your file systems.
Click to reveal answer
beginner
How do you display disk space in human-readable format using df?
Use df -h. It shows sizes in KB, MB, or GB for easier reading.
Click to reveal answer
intermediate
What does the df -T option show?
It shows the type of each file system along with disk usage.
Click to reveal answer
intermediate
If you want to check disk space for a specific directory, how do you use df?
Run df /path/to/directory. It shows disk usage for the file system containing that directory.
Click to reveal answer
advanced
What does the df --total option do?
It adds a summary line showing total disk space used and available across all file systems.
Click to reveal answer
Which command shows disk space in a human-readable format?
Adf -T
Bdf -h
Cdf --total
Ddf -a
What information does df primarily provide?
AMemory usage
BCPU usage
CDisk free and used space
DNetwork status
How do you find the file system type with df?
Adf -T
Bdf -i
Cdf --total
Ddf -h
Which command shows total disk usage across all file systems?
Adf -h
Bdf -a
Cdf -T
Ddf --total
To check disk space for the directory /home/user, you run:
AAll of the above
Bdf -h /home/user
Cdf /home/user
Ddf -T /home/user
Explain how to use the df command to check disk space in a way that's easy to understand.
Think about how you would tell a friend to see free space on their computer.
You got /3 concepts.
    Describe the difference between df and df -T.
    What extra info does the -T option add?
    You got /2 concepts.