MarzleyTech Learn

Home / Learn / Linux command line / Why Linux and the terminal: what Linux is, who uses it, distributions and how to start practising

Why Linux and the terminal: what Linux is, who uses it, distributions and how to start practising

Most websites you visit, including M-Pesa's back-end systems, bank servers, cloud platforms and the hosting behind Kenyan e-commerce sites, run on Linux. Android phones run on the Linux kernel. Supercomputers, routers, smart TVs and many IoT devices use it. If you want to work as a developer, system administrator, network engineer, cybersecurity analyst, cloud or DevOps engineer, you'll use Linux, and mostly through the terminal (the command line).

This unit explains what Linux is, why the terminal matters, which version to choose, and how to start practising today, even on a Windows laptop.

Operating systems and kernels

An operating system (OS) manages the computer's hardware and runs programs: Windows, macOS, Android, iOS, Linux. At its core is the kernel, which talks to the CPU, memory, disks and devices. On top of the kernel sit tools, a shell, and optionally a graphical desktop.

Linux strictly means the kernel, created in 1991 by Linus Torvalds, then a Finnish student. Combined with GNU tools and other software, it becomes a full operating system. It's open source: free to use, study, modify and share.

Who uses Linux, and where?

WhereExamples
Web servers and hostingThe large majority of web servers run Linux (Apache, Nginx, PHP, MySQL)
CloudAWS, Google Cloud, Azure virtual machines mostly run Linux
MobileAndroid is built on the Linux kernel
NetworkingMany routers, firewalls and switches run Linux-based systems
CybersecurityKali Linux and Parrot for penetration testing; security tools run on Linux
Data science and AITraining servers and GPU machines run Linux
Embedded and IoTRaspberry Pi, smart TVs, car systems, point-of-sale devices
SupercomputersEssentially all of the world's top supercomputers
DesktopsDevelopers, schools and users who want a free, secure system

Job titles that require Linux: system administrator, DevOps engineer, cloud engineer, site reliability engineer, network engineer, security analyst, back-end developer, data engineer.

Distributions (distros)

A distribution packages the Linux kernel with tools, a package manager and often a desktop.

DistroBest forPackage manager
UbuntuBeginners, servers, cloud (very popular)apt
DebianStable servers (Ubuntu is based on it)apt
Linux MintWindows-like desktop for beginnersapt
FedoraUp-to-date desktop and developer workstationdnf
Red Hat Enterprise Linux (RHEL), Rocky, AlmaLinuxEnterprise servers, banks, telcosdnf
Kali LinuxSecurity testing (not for daily use)apt
AlpineTiny containers (Docker images)apk

Learn on Ubuntu: it's beginner-friendly, widely used on servers, and most online tutorials use it. Skills transfer to every distro.

Why use the terminal?

TerminalGraphical interface
Works on servers with no screen (most servers have no desktop)Needs a desktop environment
Fast for repetitive tasks: rename 1,000 files in one lineClick one by one
Scriptable and automatable (backups, deployments)Hard to automate
Works over slow connections via SSHRemote desktops need good bandwidth
Precise and repeatable; easy to document and share"Click here, then there..."

The shell and the prompt

The terminal is the window; the shell is the program that reads your commands. The most common shell is Bash (Ubuntu's default); macOS uses zsh, which is very similar.

wanjiku@laptop:~/projects$
PartMeaning
wanjikuYour username
laptopThe computer's hostname
~/projectsCurrent folder (~ is your home folder)
$Normal user (# means you're root, the administrator)

Anatomy of a command

Terminal
ls -l -a /etc
PartMeaning
lsThe command (list files)
-l -a (or -la)Options/flags that change behaviour
/etcArgument: what to act on

Linux is case-sensitive: Documents and documents are different, and LS isn't a command.

Your first commands:

Terminal
whoami          # your username
hostname        # computer name
pwd             # print working directory (where am I?)
date            # current date and time
uname -a        # kernel information
cat /etc/os-release   # which distro and version
clear           # clear the screen (or Ctrl+L)
history         # commands you've typed

Keyboard time-savers:

  • Tab: auto-complete commands and file names (press twice to see options).
  • ↑ / ↓: previous/next commands.
  • Ctrl+C: stop the running command.
  • Ctrl+R: search your command history.

Ways to practise

OptionHowNotes
WSL (Windows Subsystem for Linux)In PowerShell as admin: wsl --install, restart, set a usernameReal Ubuntu inside Windows; best for most Windows users
Virtual machineVirtualBox (free) + Ubuntu ISOFull desktop; needs 4–8 GB RAM to be comfortable
Live USBFlash Ubuntu to a USB with Rufus/balenaEtcher, boot from itTry without installing
Dual bootInstall Linux alongside WindowsBack up first
Cloud serverA small VPS from a cloud provider; many offer free trials or creditsReal server experience over SSH
Raspberry PiA low-cost computer running Raspberry Pi OSGreat for IoT projects
macOS TerminalMost commands work the samemacOS is Unix-based

Getting help

Terminal
man ls          # the full manual (q to quit, / to search)
ls --help       # a quick summary of options

The community tldr tool (install with sudo apt install tldr) shows short practical examples. Online, the Ubuntu documentation, Ask Ubuntu and Stack Exchange are excellent.

Think about it: A company's website runs on a server in a data centre with no monitor or keyboard. How do the administrators manage it, and why is the terminal essential?Show answer

They connect remotely with SSH and use the terminal. Servers usually have no graphical desktop (to save resources and reduce attack surface), so all management (installing software, editing configs, checking logs, restarting services) happens through commands and scripts.

Summary

  • Linux is an open-source kernel (Linus Torvalds, 1991) that powers servers, cloud, Android, networking, security and supercomputers.
  • Distributions package it: Ubuntu (learn here), Debian, Fedora, RHEL/Rocky, Kali, Alpine.
  • The terminal is essential: servers have no desktop, and commands are fast, precise and scriptable.
  • Commands are command -options arguments; Linux is case-sensitive; Tab and ↑ save time.
  • Practise with WSL, a VM, a live USB or a cloud server; get help with man and --help.

Check yourself

  1. Who created the Linux kernel? (full name)

    Show answer

    Linus Torvalds

  2. Which distribution is recommended for beginners in this lesson?

    Show answer

    Ubuntu

  3. Which command shows your current folder?

    Show answer

    pwd

  4. What does the # at the end of a prompt mean?

    Show answer

    root

  5. Which key auto-completes commands and file names?

    Show answer

    Tab

  6. Which command installs Linux inside Windows from PowerShell? (two words)

    Show answer

    wsl --install

Lesson 1 of 12 in Linux command line · Written by · Course notes