Why Learn the Terminal?

The terminal looks scary at first — a black screen with a blinking cursor. But once you know a few basic commands, it becomes the fastest way to control your computer. Think of it like learning to drive: intimidating at first, second nature after practice.

What You Need

  • A Linux computer, or
  • A Mac (the terminal is very similar), or
  • Windows with WSL (Windows Subsystem for Linux) installed

The 10 Commands

1. pwd — Where Am I?

$ pwd
/home/yourname

pwd stands for "print working directory." It tells you which folder you're currently in. Think of it as your "You are here" marker.

2. ls — What's Here?

$ ls
Documents  Downloads  Music  Pictures

ls lists all files and folders in your current location. Add -l for details or -a to show hidden files.

3. cd — Move Around

$ cd Documents
$ pwd
/home/yourname/Documents

cd changes your current directory. Use cd .. to go up one level, and cd ~ to jump back home.

4. mkdir — Make a Folder

$ mkdir my-project
$ ls
my-project

5. touch — Create a File

$ touch notes.txt
$ ls
notes.txt

6. cat — View File Contents

$ cat notes.txt
Hello, world!

7. cp and mv — Copy and Move

$ cp notes.txt backup.txt    # copy
$ mv notes.txt ~/Documents/  # move

8. rm — Delete (Carefully!)

$ rm old-file.txt
$ rm -r old-folder/   # delete folder and everything inside

Be careful with rm — there's no recycle bin!

9. man — Get Help

$ man ls

man shows the manual for any command. Press q to exit.

10. grep — Search for Text

$ grep "hello" *.txt
notes.txt:Hello, world!

Common Mistakes and Fixes

"Permission denied": You need sudo before the command, or you're trying to modify a system file.

"Command not found": Check your spelling. Linux commands are case-sensitive.

"No such file or directory": Double-check the path. Use ls to see what's actually there.

Next Steps

Now that you know these 10 commands, try using them for a week. Open the terminal instead of the file explorer. You'll be surprised how fast it becomes natural.