Practice & Assessment
Test your understanding of Module 2: Linux File System and Navigation
Multiple Choice Questions
5Which directory contains system-wide configuration files in Linux?
What does the tilde (~) symbol represent in a Linux file path?
Which command would you use to list all files including hidden files with detailed information?
What does 'cd -' do in the Linux terminal?
Which command searches for files by traversing the live file system in real time?
Coding Challenges
1Navigate and Explore the Linux File System
Using only the terminal, perform the following steps: Navigate to /etc using an absolute path and list its contents with ls -lh. Then navigate to /var/log using a relative path and list its contents. Use pwd to confirm your location. Use find to locate all files with the .conf extension inside /etc. Finally, use which to find the full path of the bash and python3 executables.
Mini Project
File System Exploration and Documentation
Create a directory called filesystem-tour in your home directory. Using the terminal, explore at least five important Linux directories (/etc, /var/log, /bin, /home, /tmp) and for each one, run ls -lh and redirect the output to a separate .txt file inside filesystem-tour. Name each file after the directory (e.g., etc-contents.txt). Then create a summary file called README.txt using echo and output redirection that explains in your own words what each of those five directories is used for. At the end, use find to locate all .txt files inside filesystem-tour and display the result.
