Which command identifies the mounted filesystem containing /home (or its nearest containing mount)?
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.
Select all statements that correctly describe Linux storage commands.
- A
du -sh directoryestimates space used by a directory tree in a human-readable summary. - B
df -h directoryestimates the total size of the directory tree. - C
df -h /pathreports used and available space on the filesystem containing that path. - D
du -shreports available space on all mounted filesystems.
tail is used to inspect the beginning of a file, while head is used to inspect its end.
- A
True
- B
False
Which Linux command removes an empty directory?
Complete the command to search under ~/Documents for regular files whose names end in .pdf: ~/Documents -type f -name .
What distinguishes an absolute Linux path from a relative path?
Why should a wildcard filename pattern such as *.pdf be quoted in a find command?
- A
To make
findsearch only hidden files. - B
To prevent
findfrom traversing subdirectories. - C
To pass the wildcard pattern to
findinstead of having the shell expand it first. - D
To make
findtreat the pattern as a directory path.
Select all statements that correctly describe Linux commands for navigating or inspecting directories.
- A
pwdprints the current working directory. - B
cd ..moves up one directory level. - C
lsalways includes hidden entries without any options. - D
ls -laincludes hidden entries and shows details such as permissions and size.
du estimates space used by a directory tree, whereas df reports used and available space on mounted filesystems.
- A
True
- B
False
Which command name is used to inspect the end of a file?
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 .
Which command identifies the mounted filesystem containing /home, or its nearest containing mount?
- A
findmnt --target /home - B
lsblk -f /home - C
du -sh /home - D
df -h
lsblk -f lists a block device, so that device must be mounted.
- A
True
- B
False
What type of path is var/log when interpreted from the current directory? Enter the path type.
Which command searches under ~/Documents for regular files with names ending in .pdf, while ensuring the shell passes the wildcard pattern to find?
- A
find ~/Documents -type f -name *.pdf - B
find ~/Documents -type f -name '*.pdf' - C
ls ~/Documents '*.pdf' - D
find '*.pdf' ~/Documents -type d
Using rm -r normally moves a directory tree to a recoverable trash folder, from which it can easily be restored.
- A
True
- B
False
Which Linux command lets you browse a longer file? Enter the command name.
Which command reports used and available space on mounted filesystems?
- A
du -shreports used and available space on mounted filesystems. - B
findmntestimates the space used by a directory tree. - C
df -hreports used and available space on mounted filesystems. - D
lsblk -freports the space used by a directory tree.
Which Linux command prints the current working directory? Enter the command name.
Which statement correctly describes what findmnt and lsblk -f show?
- A
lsblk -flists mounted filesystems, whilefindmntshows all block devices. - B
findmntlists mounted filesystems, whilelsblk -fgives an overview of block devices and their filesystem details. - C
df -hlists block devices and their UUIDs, whilefindmntcreates mount points. - D
du -shlists mounted filesystems, whilelsblk -freports directory-tree usage.
Related study packs and tools
2 Mobile Hardware and Components
Learn how mobile-device components work together, how their designs differ, and what their capabilities and serviceability depend on.
2 Professionalism in IT Practice
Learn how integrity, communication, confidentiality, and structured judgment guide responsible conduct in IT work.
2 Virtual Machines
A medium-difficulty quiz on virtual machine architecture, provisioning, networking, storage, and operations.
3 Network Connectivity Diagnosis
A medium-difficulty quiz on diagnosing network connectivity in stages, interpreting test results, and choosing appropriate next checks.
4 Mobile Connectivity
A 14-question quiz on applying mobile connectivity concepts to common settings, usage, and troubleshooting situations.
5 Cloud Service Models
A medium-difficulty quiz on applying and distinguishing IaaS, PaaS, and SaaS, including their responsibilities, trade-offs, and appropriate uses.
5 Mobile Device Configuration
Learn how to personalize a phone or tablet, configure accessibility and notifications, install operating-system updates, and maintain backups that can support recovery.
5 Network Operations and Reliability
A medium-difficulty quiz on network operations, monitoring, configuration management, resilience, and recovery planning.
5 Network Services and Name Resolution
A medium-difficulty quiz on diagnosing DHCP, DNS, and network-service problems, progressing from core concepts to multi-step troubleshooting.
6 Security Operations and Incident Response
Learn how security teams monitor activity, manage vulnerabilities, respond to incidents, preserve digital evidence, and restore services safely.
7 Integrated Troubleshooting Practice
A practical workflow for isolating mixed hardware, display, storage, mobile-device, and network problems, protecting data, and verifying repairs.
8 Comprehensive Security+ Practice and Review
A scenario-focused guide to Security+ SY0-701 concepts, emphasizing evidence-based incident response, access control, cryptography, vulnerability handling, recovery objectives, and risk governance.