Waking Up in the Wilderness
Concept:
The terminal is your window into the file system.
pwd โ shows where you are (Print Working Directory).
ls โ lists files and folders. Add -la for hidden files and details.
cd โ changes directory. cd .. goes up, cd ~ goes home.
mkdir โ creates new directories.
Narrator:
You open your eyes. Pine trees tower above you. The air smells like rain and earth. Your backpack is gone, your phone is dead โ but there's a terminal glowing softly on a rock beside you.
Terminal:
SYSTEM ONLINE. Welcome, survivor. I am your only connection to the outside world. Through me, you can navigate, build, and survive.
You:
Where... where am I?
Terminal:
Type 'pwd' โ Print Working Directory. It will tell you exactly where you are in this wilderness.
You:
Okay... /wilderness/clearing. That's... not very reassuring.
Terminal:
Now type 'ls' to look around. It lists everything in your current location โ files, directories, resources. Add '-la' to see hidden items and details. Knowledge is survival.
You:
I see some files... and a 'forest' directory. How do I go there?
Terminal:
'cd forest' moves you into it. 'cd ..' brings you back. Think of directories as trails โ you walk in, you walk out. And 'mkdir' creates a new shelter โ a new directory. First things first: set up camp.
Example Code:
pwd
# /home/user
ls -la
# drwxr-xr-x 2 user user 4096 Jan 1 00:00 documents
# -rw-r--r-- 1 user user 123 Jan 1 00:00 notes.txt
cd documents
mkdir projects
Your Assignment
Create a directory called 'camp'.
Bash Console
bash>