Skip to content

Try “polymorphism”, “TCP handshake” or “git rebase”.

    Computer Basics / The Linux Command Line

    The Whole Story

    The whole module retold as one story — no new facts, a fast revision of The Linux Command Line.

    Extra: Revision3 min read

    The terminal is a chat window, and the shell is the literal assistant behind it: every command is a program name, options that change its behaviour, and arguments to act on, started as a child process whose three standard streams are wired to your screen (Ch 1). You're always standing in one directory, moving with cd, looking with ls and pwd, and every server keeps the same rooms: settings in /etc, logs in /var/log, live kernel data in /proc (Ch 2). Files are read with less, head and — during incidents — tail -f; changed with cp, mv, mkdir -p; linked with symlinks; and deleted with an rm that never forgives (Ch 3).

    Every file has an owner, a group, and three sets of rwx bits, written as numbers like 755 and 600, with root above all the rules and sudo to borrow its power carefully (Ch 4). The real magic is the conveyor belt: redirect streams with >, >> and 2>&1, chain tools with |, and join steps on exit codes with && and || (Ch 5). Small single-purpose machines — grep, sort, uniq -c, awk, sed, find, jq — combine into answers like "the top IPs hitting the login page" in one line (Ch 6).

    You can read the process register with ps and top, judge overload by comparing load average with the core count, and stop processes politely with kill before forcefully with kill -9 (Ch 7). Every process carries environment variables, and PATH decides which program a name runs — the same mechanism apps use to read their configuration (Ch 8). Repeated steps become scripts, made safe with set -euo pipefail and quoted variables (Ch 9). SSH gives you a secure terminal on any server using a key pair, plus file copying and tunnels into private networks (Ch 10). Package managers install software, systemd keeps services alive and logs them, and cron runs jobs on a schedule (Ch 11).

    And at 11 p.m., it all comes together as a calm checklist: service status → logs → disk → memory → CPU → ports → local health → dependencies (Ch 12).