Let's Start!

So youโ€™ve cracked open Linux. Congrats โ€” youโ€™re entering a world where you command the computer with words, not clicks. Think of it like talking to your PC in its native tongue.

Letโ€™s make this fun.


๐Ÿ–ฅ๏ธ The Big Picture: Whoโ€™s Who in Linux

When you use a computer:

  1. Hardware โ†’ the physical stuff (CPU, memory, disk, keyboard).

  2. Kernel โ†’ the OS brain that talks to hardware.

  3. Shell โ†’ your translator. You type a command, shell hands it to the kernel, kernel does the job, you see the result.

Imagine: You โ†’ Shell (translator) โ†’ Kernel (brain) โ†’ Hardware (muscles).


๐Ÿ’ป What is a Terminal?

A terminal is your text-based chat window with Linux. Back in the day, it was an actual physical device. Today itโ€™s just an app.

Examples:

  • GNOME Terminal

  • Konsole

  • WSL on Windows (Which I am using)

Open one. Itโ€™s where all the magic begins. โœจ

If you haven't yet installed WSL yet, install it from here.


๐Ÿš What is Bash?

Most Linux systems use Bash (Bourne Again SHell). Itโ€™s the interpreter that runs your commands and gives you output. In this course โ†’ weโ€™re sticking with bash.


โšก Running Your First Commands

Try these out:

๐Ÿ’ก Tips

  • Commands are case-sensitive โ†’ pwd โ‰  PWD.

  • Typos? Bash will throw: command not found.


๐Ÿ“– Getting Help

Linux has built-in manuals:

Controls:

  • q โ†’ quit

  • /word โ†’ search for something

Example: /directory โ†’ find mentions of โ€œdirectory.โ€


๐Ÿ’ก The Shell Prompt

When you open a terminal, youโ€™ll see something like:

Thatโ€™s the prompt โ†’ shell waiting for your orders.

Change it temporarily:

Reset โ†’ close & reopen the terminal.


๐ŸŽฎ Pro Navigation Tricks

๐Ÿ” Command History

  • โ†‘ (up-arrow) โ†’ brings back your last command.

  • โ†“ (down-arrow) โ†’ moves forward again.

  • Terminals usually remember your last 1000 commands.

โ†”๏ธ Cursor Movement

  • Use โ† โ†’ arrows to move inside a command.

  • Fix typos without retyping everything.

๐Ÿ–ฑ๏ธ Mouse Copy-Paste

  • Highlight text โ†’ auto-copied.

  • Middle-click โ†’ paste it.

  • Forget Ctrl+C / Ctrl+V here โ€” they mean other things (like killing a process โš”๏ธ).

๐ŸŽฏ Focus Options

  • Most desktops use click-to-focus (click a window to make it active).

  • Old-school Linux prefers focus-follows-mouse โ†’ just hover to give focus.

  • If supported, try it โ€” smoother copy-pasting.


๐Ÿ‹๏ธ Exercises

  1. Run:

  2. Use man date โ†’ try different date formats.

  3. Change your prompt:

  4. Recall your last command using the โ†‘ arrow.

  5. Practice copy-paste with the mouse.

  6. Exit the terminal with:


Date Learned: 11 August 2025

Source: The Linux Command Line, Chapter 1

Last updated