Script Valley
Linux & Bash for Developers
Linux Fundamentals & File System/Assessment

Practice & Assessment

Test your understanding of Linux Fundamentals & File System

Multiple Choice Questions

5
1

What does the command `chmod 644 file.txt` set the permissions to?

2

Which directory stores system-wide configuration files on Linux?

3

You run `rm -rf build/` but immediately realize build/ was the wrong directory. What happens?

4

What is the output of `pwd` after running `cd ~` from /var/log?

5

What does the `-p` flag do in `mkdir -p projects/backend/src`?

Coding Challenges

1
1

Project Directory Scaffolder

Using only terminal commands (no scripts yet), create the following directory structure under ~/workspace/myapp: src/, src/controllers/, src/models/, src/views/, tests/, config/, logs/. Then create empty placeholder files: src/index.js, config/app.json, logs/app.log, .env. Finally, set permissions on .env to 600 (owner read/write only) and verify all structure with ls -lah and ls -R. Expected output: full tree visible via ls -R ~/workspace/myapp showing all dirs and files, .env showing -rw------- in ls -l output. Time estimate: 15 minutes.

Easy

Mini Project

1

File System Audit Report

Using only terminal commands, perform a full audit of your home directory. Tasks: (1) List all hidden dotfiles in ~, (2) Find files larger than 1MB using find ~ -size +1M, (3) Check permissions on ~/.ssh/ if it exists, (4) List the five most recently modified files in ~/projects or ~ using ls -lt | head -5, (5) Create a directory ~/audit/ and redirect each command output to a separate file inside it (dotfiles.txt, large_files.txt, ssh_perms.txt, recent_files.txt). Verify each file has content using cat. Deliverable: four populated text files in ~/audit/ that together describe the state of your home directory.

Easy
Practice & Assessment โ€” Linux Fundamentals & File System โ€” Linux & Bash for Developers โ€” Script Valley โ€” Script Valley