Timedora
Free Practice Quiz Question List

Linux Filesystem Commands and Storage Online Quiz Questions

Use this free practice quiz with 20 questions to review Linux Filesystem Commands and Storage, test your knowledge, and prepare for your next test or exam.

20 questions
01
Choose one
1 point

Which command identifies the mounted filesystem containing /home (or its nearest containing mount)?

  1. A

    lsblk -f /home

  2. B

    findmnt --target /home

  3. C

    du -sh /home

  4. D

    df -h

02
Choose all
1 point

Select all statements that correctly describe Linux storage commands.

  1. A

    du -sh directory estimates space used by a directory tree in a human-readable summary.

  2. B

    df -h directory estimates the total size of the directory tree.

  3. C

    df -h /path reports used and available space on the filesystem containing that path.

  4. D

    du -sh reports available space on all mounted filesystems.

03
True or false
1 point

tail is used to inspect the beginning of a file, while head is used to inspect its end.

  1. A

    True

  2. B

    False

04
Written response
1 point

Which Linux command removes an empty directory?

05
Fill in the blank
1 point

Complete the command to search under ~/Documents for regular files whose names end in .pdf: ~/Documents -type f -name .

06
Open ended
1 point

What distinguishes an absolute Linux path from a relative path?

07
Choose one
1 point

Why should a wildcard filename pattern such as *.pdf be quoted in a find command?

  1. A

    To make find search only hidden files.

  2. B

    To prevent find from traversing subdirectories.

  3. C

    To pass the wildcard pattern to find instead of having the shell expand it first.

  4. D

    To make find treat the pattern as a directory path.

08
Choose all
1 point

Select all statements that correctly describe Linux commands for navigating or inspecting directories.

  1. A

    pwd prints the current working directory.

  2. B

    cd .. moves up one directory level.

  3. C

    ls always includes hidden entries without any options.

  4. D

    ls -la includes hidden entries and shows details such as permissions and size.

09
True or false
1 point

du estimates space used by a directory tree, whereas df reports used and available space on mounted filesystems.

  1. A

    True

  2. B

    False

10
Written response
1 point

Which command name is used to inspect the end of a file?

11
Fill in the blank
1 point

Complete each statement with the appropriate Linux command. To create a directory and any missing parent directories, use . To copy a directory and its contents, use .

12
Choose one
1 point

Which command identifies the mounted filesystem containing /home, or its nearest containing mount?

  1. A

    findmnt --target /home

  2. B

    lsblk -f /home

  3. C

    du -sh /home

  4. D

    df -h

13
True or false
1 point

lsblk -f lists a block device, so that device must be mounted.

  1. A

    True

  2. B

    False

14
Written response
1 point

What type of path is var/log when interpreted from the current directory? Enter the path type.

15
Choose one
1 point

Which command searches under ~/Documents for regular files with names ending in .pdf, while ensuring the shell passes the wildcard pattern to find?

  1. A

    find ~/Documents -type f -name *.pdf

  2. B

    find ~/Documents -type f -name '*.pdf'

  3. C

    ls ~/Documents '*.pdf'

  4. D

    find '*.pdf' ~/Documents -type d

16
True or false
1 point

Using rm -r normally moves a directory tree to a recoverable trash folder, from which it can easily be restored.

  1. A

    True

  2. B

    False

17
Written response
1 point

Which Linux command lets you browse a longer file? Enter the command name.

18
Choose one
1 point

Which command reports used and available space on mounted filesystems?

  1. A

    du -sh reports used and available space on mounted filesystems.

  2. B

    findmnt estimates the space used by a directory tree.

  3. C

    df -h reports used and available space on mounted filesystems.

  4. D

    lsblk -f reports the space used by a directory tree.

19
Written response
1 point

Which Linux command prints the current working directory? Enter the command name.

20
Choose one
1 point

Which statement correctly describes what findmnt and lsblk -f show?

  1. A

    lsblk -f lists mounted filesystems, while findmnt shows all block devices.

  2. B

    findmnt lists mounted filesystems, while lsblk -f gives an overview of block devices and their filesystem details.

  3. C

    df -h lists block devices and their UUIDs, while findmnt creates mount points.

  4. D

    du -sh lists mounted filesystems, while lsblk -f reports directory-tree usage.