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?
✗ Incorrect
df -h shows disk space in KB, MB, or GB, making it easy to read.What information does
df primarily provide?✗ Incorrect
df reports disk space usage and availability on file systems.How do you find the file system type with
df?✗ Incorrect
df -T adds a column showing the file system type.Which command shows total disk usage across all file systems?
✗ Incorrect
df --total adds a summary line with total disk usage.To check disk space for the directory
/home/user, you run:✗ Incorrect
All these commands show disk space info for the file system containing
/home/user, with different details.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.