Linux Filesystem Hierarchy — Concept Check
Questions on Linux Filesystem Hierarchy. Everything in Linux is a file. The Filesystem Hierarchy Standard (FHS) defines a single tree rooted at / — knowing where things live makes you fast on any Linux system.
Questions in this quiz
8 questions on Linux Filesystem Hierarchy — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.You notice that your disk usage is increasing rapidly. Which directory is most likely to contain large log files?
- A/etc
- B/var/log
- C/usr/bin
- D/dev
2.A developer is trying to find a configuration file for nginx but is looking in /usr/bin. Where should they look instead?
- A/home
- B/var/log
- C/opt
- D/etc
3.You want to check the CPU information on your Linux system. Which command should you use?
- Als /usr/bin
- Bls /sys/class/net
- Ccat /etc/passwd
- Dcat /proc/cpuinfo
4.A user complains that their home directory is missing. Where should you check for user home directories?
- A/etc
- B/var
- C/usr/local
- D/home
5.Which directory would you check for runtime PID files and sockets?
- A/usr/bin
- B/var/run
- C/opt
- D/proc
6.A system administrator is trying to free up space by deleting temporary files. Which directory should they target?
- A/etc
- B/usr/lib
- C/tmp
- D/boot
7.You want to suppress all output from a script. Which device file should you redirect the output to?
- A/dev/sda
- B/dev/random
- C/dev/tty1
- D/dev/null
8.A user believes that /proc contains files that can be modified to change system settings. What is the correct understanding?
- A/proc is a virtual filesystem for kernel and process info
- B/proc is for storing user documents
- C/proc is the root user's home directory
- D/proc contains user binaries