Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to show disk free space in human-readable format.
Linux CLI
df [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-a' which shows all filesystems but not human-readable sizes.
Using '-l' which limits output to local filesystems.
Using '-t' which filters by filesystem type.
✗ Incorrect
The '-h' option makes the output human-readable by showing sizes in KB, MB, or GB.
2fill in blank
mediumComplete the command to display disk free space for the root directory only.
Linux CLI
df [1] / Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-T' which shows filesystem type but not human-readable sizes.
Using '-i' which shows inode information instead of disk space.
Using '-x' which excludes filesystem types.
✗ Incorrect
The '-h' option shows the sizes in a human-readable format for the specified directory '/' (root).
3fill in blank
hardFix the error in the command to show disk free space with filesystem type included.
Linux CLI
df [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-hT' which shows both human-readable sizes and filesystem type.
Using '-t' which filters by filesystem type instead of showing it.
Using '-i' which shows inode info, not filesystem type.
✗ Incorrect
The '-T' option shows the filesystem type in the output.
4fill in blank
hardFill the blanks to show disk free space excluding temporary filesystems and in human-readable format.
Linux CLI
df [1] [2] [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-T' which shows filesystem type but does not exclude anything.
Using 'tmpfs' as an option instead of a value for '-x'.
✗ Incorrect
Use '-h' for human-readable sizes and '-x tmpfs' to exclude tmpfs filesystems.
5fill in blank
hardFill all three blanks to create a dictionary of mount points and their used space in human-readable form.
Linux CLI
df -h | awk '{{print $[1], $[2]' | while read [3] used; do echo "$used on $[3]"; done
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up column numbers for mount point and used space.
Using wrong variable names in the while loop.
✗ Incorrect
Column 6 is the mount point, column 3 is used space, and 'mount' is the variable to read mount points.