Linux Command Basics: Terminal 101

When you start with Linux, the first thing you'll hit is the terminal — a "black screen where you type text to operate your PC." Instead of clicking icons with a mouse, you type short English words called commands to give the computer instructions. It looks intimidating at first, but the mechanics are simple: learn about 20 commands and you can handle most day-to-day tasks.

How the terminal and commands work

The terminal is the window through which you type text to the PC and receive text back. On Ubuntu it's called "Terminal"; on Mac it's "Terminal.app"; on Windows 11 it's "Windows Terminal," and it comes pre-installed. The software that interprets what you type is called a "shell," and Bash or Zsh is the standard on Linux.

The basic structure of a command is command-name options arguments. For example, ls -l /home: ls is the command (list), -l is the option (detailed view), and /home is the argument (the target location).

From typing to execution

Example: What happens when you type "ls -l" command (ls) + option (-l) = detailed listing. Press Enter and the result comes back as text. terminal student@ubuntu:~/Documents$ ls -l ↑ command typed: ls=list -l=detailed view total 24 drwxr-xr-x 2 student student 4096 May 4 10:23 homework -rw-r--r-- 1 student student 256 May 4 09:12 memo.txt -rw-r--r-- 1 student student 1024 May 4 08:55 report.md -rwxr-xr-x 1 student student 512 May 3 22:10 setup.sh student@ubuntu:~/Documents$ _ ← each line: permissions / owner / size / date / filename Enter → shell (Bash) interprets it → OS executes it → result appears in text within 0.05 sec. That's the basic cycle.
Fig. 1: Live example of ls -l. A file list with permissions, sizes, and dates appears in under a second.

When you press Enter, the shell interprets the input, passes it to the OS, and the corresponding program runs — returning the result. Most operations complete in under 0.1 seconds. When an error occurs, the reason is shown in text too, so a quick search will usually find the fix.

What is the terminal used for?

The terminal and its commands are central to IT work. Changing web server settings, operating a database, batch-processing files, kicking off AI model training, managing versions with Git, connecting remotely via SSH — many things simply can't be done with a mouse, or the command line is vastly faster.

For example, "find every file whose name contains 2026" is quicker and more accurate done with a command than by clicking through folders one by one. On the flip side, delete commands are powerful, so always display your targets first before executing. That "fast but double-check first" feeling is the core habit of working in the terminal.

Recommended practice for upper-elementary through high school

20 Commands You'll Use Every Day (by priority) The 7 red commands in week 1 are all you need. Then move to green → purple. Level 1: File operation basics (first week) pwd show current location ls list files cd change directory mkdir create folder cp copy mv move / rename rm delete (be careful!) Level 2: Viewing and searching content (week 2) cat display file contents less scrollable view grep search for text find find files head/tail show top/bottom lines wc count lines Level 3: Development essentials (week 3+) git code management python run programs ssh remote connection curl fetch a URL Pipe (|) — chain commands like magic: e.g. ls | grep .txt "Extract only lines containing .txt from ls output" — done in one line. A mouse would require clicking each one.
Fig. 2: Essential 20 commands. Just the 7 red ones can replace half your daily mouse work.

In your first week, use just the 7 file-operation commands (ls cd pwd mkdir cp mv rm) every day. Even these alone will let you replace about half of your mouse-based work with the terminal. Once you're comfortable, move on to grep and git.

Learn Tab completion early — press Tab and the shell fills in the rest of the word for you. No need to type long filenames in full, and typos drop dramatically.

Create a practice folder called terminal-practice and experiment only inside it for safety. Confirm your location with pwd, see what's there with ls, then use mkdir and cp. When practicing deletion, only target practice files you made yourself, never anything important.

When an error appears, you don't have to understand every English word — just look at the first word and the filename. No such file or directory means wrong path or name; Permission denied means a permissions issue. Getting into the habit of reading error messages rather than fearing them is what makes you improve.

Pitfalls to watch out for

Caution for terminal beginners
  • The rm command has no recycle bin. Files deleted this way are generally gone for good — always add the -i flag for confirmation when you're starting out.
  • Before running a command you copied from the internet, always check what it does. Some articles include dangerous commands as traps.
  • Don't add sudo without understanding why. Running something with admin privileges can break the whole system.

How will this help you in the future?

In IT job interviews, comfort with terminal operations is evaluated directly as a practical skill. Programmer, infrastructure engineer, data analyst, researcher — command-line work is a prerequisite in all of these. Build the habit in middle or high school and you'll be ready to contribute the moment you start your first job.

Terminal work isn't just about typing fast. It's the skill of thinking in order: where am I, what's the target file, what command runs, does the result look right? That sequence applies to programming, server operations, and data analysis alike. A little practice every day makes the computer's inner workings increasingly legible.

Things you can do today

Get started in 3 steps
  1. Open Windows Terminal on Windows, Terminal.app on Mac, or the terminal on Ubuntu.
  2. Try pwd to see your location, ls to list files, and cd Documents to navigate.
  3. Keep a notebook where you add 3 new commands each day — aim for 20 in a week.

Summary

The terminal is the "text window for controlling your PC," and the shell interprets your input and relays it to the OS. Start with the 7 file-operation commands — even those alone let you replace part of your daily workflow. Make a habit of checking what a command does before running it, and dangerous operations will never catch you off guard. Once you're comfortable, you'll find the terminal faster and more accurate than a mouse in many situations.

Check The basic shape of a command is?