LAB-FS-02 - Inside /etc - The Config Vault
FS File System Mastery
Inside /etc - The Config Vault
Inspect common files inside /etc in read-only mode so you can recognize system configuration safely and confidently.
40 min BEGINNER LINUX Field-verified
Prerequisites
Success criteria
- Read a few important files in /etc and describe what each one controls.
- Recognize that many system settings are plain text.
Safety notes
- Stay in read-only mode for this lab. Do not edit live files in /etc while learning.
Part A: The Field Guide
/etc is where Linux keeps many system-wide configuration files.
For beginners, the most important insight is simple: these are usually plain text files that you can inspect with normal reading tools. That makes Linux more transparent, but it also means careless edits can break real behavior.
First Rule of /etc
Read first. Edit later. If a file says it is auto-generated or managed by another tool, respect that warning.
Good starter files
/etc/os-release: identifies the Linux distribution/etc/hosts: local hostname mappings/etc/passwd: account records, not passwords/etc/resolv.conf: DNS settings or pointers to DNS management
Part B: The Drill Deck
Terminal required: this lab is about reading and interpreting, not changing settings.
G Guided Step by step - type exactly this and compare the result >
Exercise G1: Identify the machine
- Run
cat /etc/os-release - Find
PRETTY_NAME - Say which Linux distribution you are on
Exercise G2: Inspect local name resolution
- Run
cat /etc/hosts - Find the line that mentions
localhost - Notice that comments begin with
#
Exercise G3: Read the account list
- Run
cat /etc/passwd - Notice that each line describes one account
- If
columnis available, make it easier to read:cat /etc/passwd | column -s: -t
S Solo Task described, hints available - figure it out >
Exercise S1: Check DNS configuration
- Run
cat /etc/resolv.conf - Look for
nameserverlines - If the file says not to edit it by hand, note that and leave it alone
Exercise S2: Explore .d directories
- Run
cd /etc - Run
ls -ld *.d - Pick one directory and list its contents
- Notice how Linux often uses small drop-in config files instead of one huge file
M Mission Real scenario - no hints, combine multiple skills >
Mission M1: Practice a safe backup habit
Do not write inside /etc for this mission. Instead:
- Create a practice folder in your home directory:
mkdir -p ~/etc-practice - Copy a safe file for inspection:
cp /etc/hosts ~/etc-practice/hosts.backup - Verify it exists:
ls -l ~/etc-practice - Read the copied file from your home directory
That teaches the right habit: make a backup or working copy before experimenting.