ArunNetworkingPro
🐧

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.

Beginner1 hourTerminal
/etchomeusryouyou are here!everything is a tree 🌳

🧰 What you need

Let's build it

1

Where am I?

pwd

"Print working directory". Linux always knows where you are, even when you don't.

2

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.

3

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.

4

Copy, move, rename

cp hello.txt ideas/
mv hello.txt greeting.txt
ls -R

In Linux, renaming is just moving a file to a new name.

5

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.

6

Ask the manual

man ls

Every 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 ~/playground

Now 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