Track 06 · Linux
The Linux track
The filesystem, permission bits, processes and pipelines — things you can watch run.
45 concepts mapped · 7 interactive now · 46 steps · free, no login
01Filesystem
3 of 5 liveOne tree, and what a filename actually refers to.
- 01
The filesystem & paths
One tree, one root, and every path is either from here or from the top.
intro7 min7 steps0% - 02
File permissions & chmod
Nine bits, three groups of three. 644 is not a magic number — it is binary.
intro9 min7 steps0% - 03
Inodes, hard links & symlinks
A filename is not the file. It is a directory entry pointing at one.
core9 min6 steps0% - 04
Mounting & devices
upcomingDisks appear as directories; /dev is files that are hardware.
- 05
Disk usage: df, du & quotas
upcomingWhy df and du disagree, and where the space actually went.
02The shell
2 of 5 liveWhat the shell does to your command before running it.
- 06
Pipes & redirection
Every process is born with three streams. Redirection just re-plugs them.
core10 min7 steps0% - 07
Globbing & expansion
upcomingThe shell expands *, not the command — and the order matters.
- 08
Quoting rules
upcomingSingle, double and none — the difference that breaks scripts on spaces.
- 09
Variables & the environment
Shell variables, exported variables, and what a child process inherits.
intro7 min5 steps0% - 10
Scripts, exit codes & conditionals
upcoming$?, set -e, and why [ is a command rather than syntax.
03Text processing
1 of 5 liveThe tools that make the pipeline worth having.
- 11
grep & regular expressions
Matching lines, and the difference between basic and extended regex.
core8 min6 steps0% - 12
sed: stream editing
upcomingSubstitution, addresses and in-place edits.
- 13
awk: fields & records
upcomingEvery line split into fields, with a pattern-action program over them.
- 14
sort, uniq, cut & tr
upcomingThe small tools that do most of the work in a real pipeline.
- 15
find & xargs
upcomingWalking the tree by predicate, and safely acting on the results.
04Processes
1 of 4 liveWhat is running, and how to control it.
- 16
Processes, fork & signals
Running a command means copying a process, then replacing what it is running.
core10 min8 steps0% - 17
Job control
upcomingCtrl-Z, bg, fg, nohup — and why closing the terminal kills things.
- 18
top, ps & process states
upcomingRunning, sleeping, uninterruptible — and what load average measures.
- 19
cron & systemd services
upcomingScheduling work, and why your cron job cannot find its commands.
05Users & networking
0 of 4 liveWho you are, and how the machine talks.
- 20
Users, groups & sudo
upcomingUIDs, group membership, and what root actually means.
- 21
SSH & key authentication
upcomingPublic keys, known_hosts, and why permissions on ~/.ssh matter.
- 22
Ports, sockets & listening services
upcomingWhat ss and netstat show, and what a port really is.
- 23
curl & inspecting HTTP
upcomingHeaders, status codes and following redirects from the terminal.
06Packages & performance
0 of 4 liveInstalling software and finding the bottleneck.
- 24
Package managers
upcomingapt, dnf and pacman — repositories, dependencies and lock files.
- 25
Compiling from source
upcomingconfigure, make, install — and where the files actually land.
- 26
Memory, cache & swap
upcomingWhy free shows almost no free memory, and why that is correct.
- 27
Logs & journald
upcomingWhere things get written, and how to follow them live.
07Kernel & devices
0 of 4 liveThe kernel side of the boundary you crossed with syscalls.
- 28
Loadable kernel modules
upcoming12 minExtend the kernel at runtime with insmod, rmmod, and lsmod.
- Write a minimal 'hello, world' kernel module in C
- Load and unload with insmod/rmmod, inspect with lsmod
- Read module output from dmesg
- 29
/sys and /proc — the kernel as files
upcoming10 minRead CPU count, control fan speed, or tweak a driver — all by touching text files.
- Read /proc/meminfo, /proc/[pid]/status, /proc/cpuinfo
- Understand /sys as a typed view of kernel objects
- Change kernel parameters through /proc/sys and sysctl
- 30
Character vs block devices
upcoming10 min/dev/null is a character device. /dev/sda is a block device. That distinction runs deep.
- Distinguish character, block, and pseudo devices
- Read a device's major/minor number from ls -l
- Create device nodes with mknod
- 31
kprobes & tracepoints
upcoming11 minAttach probes to any kernel function without recompiling.
- Register a kprobe on a kernel function
- Compare kprobes to static tracepoints
- Feed probe data into perf and trace-cmd
08Containers & isolation
0 of 5 liveHow a Docker container is really a process with kernel restrictions.
- 32
Namespaces (PID, network, mount, user)
upcoming13 minThe kernel gives each process its own view of PIDs, mounts, network, and users.
- List a process's namespaces via /proc/[pid]/ns
- Enter a namespace with nsenter
- Understand how each namespace type isolates a different resource
- 33
cgroups: CPU, memory & I/O limits
upcoming12 minCap a process at 2 GB of RAM and half a CPU core, enforced by the kernel.
- Read /sys/fs/cgroup to inspect a container's limits
- Set memory.max and cpu.max on a cgroup v2 slice
- Diagnose an OOM kill traced to a cgroup limit
- 34
OverlayFS & union mounts
upcoming11 minStack layers so a read-only base plus a writable top look like one filesystem.
- Mount an overlay with lowerdir + upperdir + workdir
- Explain how Docker image layers use this
- Understand copy-up on first write
- 35
seccomp: syscall filtering
upcoming11 minGive a process a whitelist of allowed syscalls — anything else terminates it.
- Load a BPF seccomp filter with prctl
- Recognise a seccomp-imposed EPERM in strace output
- Balance strictness against unexpected library syscalls
- 36
Linux capabilities
upcoming10 minBreak root's superpowers into 40+ fine-grained bits.
- Read a binary's file capabilities with getcap
- Grant CAP_NET_BIND_SERVICE without giving full root
- Drop capabilities inside a process with capset
09Networking deep
0 of 4 liveThe kernel side of TCP/IP, packet filtering, and virtual networks.
- 37
Berkeley sockets in C
upcoming13 minsocket(), bind(), listen(), accept() — the ancient API every server still uses.
- Write a TCP echo server with the raw syscall interface
- Handle EAGAIN and EINTR correctly
- Compare blocking, non-blocking, and epoll-driven I/O
- 38
iptables, nftables & netfilter
upcoming12 minThe kernel's hook points where packets are inspected and rewritten.
- Read the four tables (filter, nat, mangle, raw) and their chains
- Write a rule to redirect a port with DNAT
- Understand where nftables differs from iptables syntax
- 39
Network namespaces & veth pairs
upcoming12 minBuild a private network inside a namespace — the core of container networking.
- Create a netns with ip netns add
- Connect two namespaces with a veth pair
- Add a bridge to route between them
- 40
ss & tcpdump
upcoming11 minInspect connections and capture packets on the wire.
- Read ss -tlnp to see who is listening on what port
- Capture and filter with tcpdump 'tcp port 443'
- Correlate a slow request with retransmits in the capture
10Observability
0 of 5 liveTracing what a running system is actually doing.
- 41
strace deep dive
upcoming10 minWatch every syscall, argument, and return value — the ultimate debugging tool.
- Filter with -e trace= and -e signal=
- Attach to a running process with -p
- Diagnose 'why is my app slow' with -c summary
- 42
ltrace — library call tracing
upcoming8 minLike strace, but for dynamically linked function calls.
- Trace calls to libc, libssl, and application libraries
- Filter with -e to focus on specific functions
- Combine with strace to see the full picture
- 43
perf: CPU profiling
upcoming13 minHardware performance counters, sampling profiler, flame graphs.
- Sample CPU with perf record; view with perf report
- Generate a flame graph from perf output
- Read cache-miss and branch-miss counters
- 44
eBPF & bcc/bpftrace
upcoming14 minSafe kernel-level programmes that observe and trace anything.
- Write a one-liner with bpftrace
- Attach an eBPF programme to a syscall entry point
- Understand the eBPF verifier and its constraints
- 45
ftrace — function tracing
upcoming10 minThe kernel's built-in tracer, exposed via /sys/kernel/tracing.
- Enable function_graph tracing for one function
- Read a call graph with entry/return timings
- Compare ftrace against perf and eBPF for the same job
The full syllabus is listed above in teaching order. Concepts marked upcoming are mapped but not yet built as visualizations. Progress is kept in this browser only.