Your first hour in the terminal
The terminal isn't scary. It's just very, very honest.
The terminal looks scary because nobody tells you it's just a conversation: you type what you want, Linux does it. One hour from now, you'll move around a Linux system faster than with a mouse.
🧰 What you need
- Any Linux machine: a Raspberry Pi, an old laptop, a VM, or WSL on Windows (run
wsl --installin PowerShell)
Let's build it
Where am I?
pwd"Print working directory". Linux always knows where you are, even when you don't.
What's here?
ls
ls -la-l shows details, -a shows hidden files (the ones starting with a dot). Your home folder has more secrets than you thought.
Make a playground
mkdir -p ~/playground/ideas
cd ~/playground
touch hello.txt
echo "Linux is fun" > hello.txt
cat hello.txt~ means your home folder. > writes into a file (and overwrites it); >> adds to the end.
Copy, move, rename
cp hello.txt ideas/
mv hello.txt greeting.txt
ls -RIn Linux, renaming is just moving a file to a new name.
Let Tab do the typing
Type cd ~/pla and press Tab. Linux finishes the word for you. Press Tab twice when there are several options. Pros aren't fast typists; they're fast Tab-pressers.
Ask the manual
man lsEvery command comes with its own manual. Press / to search inside it and q to quit.
✅ How you know it worked
Run ls -R ~/playground. You should see greeting.txt and an ideas folder containing hello.txt.
💥 Break it on purpose
Delete the playground:
rm -r ~/playgroundNow try to find it in a recycle bin. There isn't one. rm means gone. That's why real pros read a command twice before pressing Enter, especially one with rm in it.
🧠 What's really going on
Linux keeps everything in one big tree starting at /, the root. Your files live in /home/yourname, programs in /usr/bin, settings in /etc. Every command you just ran is a small program that does one job well, and you're now the one telling them what to do.
← Back to all Linux labs · Stuck? Email me