Hidden Files & Configurations
Concept & Overview
Think of a secret drawer under your desk where you keep system settings so they don't clutter up your main workspace. In Linux, we create hidden files simply by starting their names with a dot (.).
- These dotfiles (like .bashrc or .config) store user preferences and config settings behind the scenes.
- A standard ls command won't show them. To peek at these hidden files, you must add the -a (all) flag, running ls -a.
Why this matters: If you run ls without -a, hidden files (whose names start with a .) are completely omitted from the output. You won't see important files like .config_names and might think they are missing. The -a flag tells ls to list all files, including hidden ones.
unique_names.txt in your home folder to a hidden file named .config_names using mv, then reveal it by running ls -a.Command Syntax Reference
| Command / Syntax | Description |
|---|---|
ls -a | List all files, including hidden files |
mv file .file | Hide a file by prefixing its name with a dot |
Verification Objectives
These conditions will be automatically verified when you run commands inside the interactive terminal simulator:
- ○Use "mv" to rename the file
- ○Create hidden file ".config_names" in home
- ○Verify original unique_names.txt is removed
- ○Use "ls -a" to verify hidden file is present
Ready to complete Quest 32?
Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.