Articles

25 articles. Power button to shell prompt. Start anywhere, but they build on each other.

22

Your First Shell Script

A shell script is a text file that the shell reads as a sequence of commands.

Shell
21

The Environment

Environment variables are how the shell and programs share configuration.

Shell
20

Pipes and Redirection

The power of Unix comes from connecting programs together with pipes.

Shell
19

Standard I/O

Every process has three channels: standard input, standard output, and standard error.

Shell
18

What a Shell Actually Is

The shell is not the terminal. It is a program that reads commands and runs them.

Shell
17

Users, Groups, and Permissions

Linux controls access through a simple system of users, groups, and permission bits.

Security
16

The TTY and Terminal

The terminal you type into has a history that goes back to mechanical teletypes.

OS
15

The Process Model

Every running program is a process. The kernel manages them all.

OS
14

PID 1: init and systemd

The first userspace process starts everything else. It is process number one.

OS
13

The Root Filesystem

Before the system can do anything useful, it needs to mount its root filesystem.

OS
12

Device Drivers

The kernel cannot talk to hardware directly. Drivers are the translators.

Kernel
11b

The Clock Signal

Every operation in a computer happens in time with a clock. This is how timing works.

Hardware
11

Kernel Init

The kernel takes control of the hardware and begins building the operating system.

Kernel
10b

Decompressing and Handing Off

The kernel image is compressed. Before it can run, it must unpack itself.

Boot
10a

Finding the Kernel

GRUB locates the kernel image on disk and prepares to load it into memory.

Boot
09

Stage 2: GRUB

GRUB takes over from the bootloader and gives you a menu. Here is what it does next.

Boot
08

Stage 1: The Bootloader

The first tiny program that loads from disk. It has one job: load something bigger.

Boot
07

Finding the Boot Device

The firmware searches for something it can boot from. This is how it decides.

Boot
06

The Bus System

How the CPU talks to every other component through shared communication channels.

Hardware
05

Memory Initialization

RAM does not work until the firmware trains it. Here is what that means.

Hardware
04

UEFI vs Legacy BIOS

Two generations of firmware and why the transition matters.

Firmware
03b

Why Linux?

Why this series uses Linux as its reference operating system.

Linux
03

POST and the BIOS

The first software that runs is not your operating system. It is the firmware.

Firmware
02

The Reset Vector

The CPU wakes up at a hardcoded address. Everything starts from that one location.

Hardware
01

The Moment Power Arrives

What happens in the first nanoseconds after you press the power button.

Hardware
00

Bits, Bytes, and Voltage

Every computation starts with a physical signal. This is how voltage becomes meaning.

Foundations