Linux · College

Linux, section by section.

17 sections and 98 topics in teaching order. Each topic: read it, flip the flashcards, then test your understanding. Every topic is free.

Linux command cheat sheet chmod calculator Cron explainer Set up a practice lab
A

The big picture

How a Linux system is layered: hardware, the kernel, user space and users. · 4 topics

  1. A.1Linux, Unix, and levels of abstraction
  2. A.2Hardware: main memory and state
  3. A.3The kernel: processes, memory, drivers, and system calls
  4. A.4User space and users
B

Basic commands and the directory hierarchy

Working in the shell: core commands, variables, redirection, processes, permissions and the layout of the filesystem. · 14 topics

  1. B.1The Bourne shell and using it
  2. B.2Basic commands
  3. B.3Navigating directories and wildcards
  4. B.4Intermediate commands: grep, less, diff, find, sort
  5. B.5Dot files, environment variables, and the command path
  6. B.6Special characters and command-line editing
  7. B.7Text editors and getting online help
  8. B.8Shell input and output: redirection and pipes
  9. B.9Understanding error messages
  10. B.10Listing and manipulating processes: signals and jobs
  11. B.11File modes and permissions
  12. B.12Archiving and compressing files
  13. B.13Linux directory hierarchy essentials
  14. B.14Running commands as the superuser
C

Devices

How the kernel presents hardware as files and how udev names and manages devices. · 5 topics

  1. C.1Device files
  2. C.2The sysfs device path and dd
  3. C.3Device name summary
  4. C.4udev
  5. C.5In depth: SCSI, drivers, and the kernel
D

Disks and filesystems

Partitioning disks, building and mounting filesystems, swap, LVM and what lives inside a filesystem. · 6 topics

  1. D.1Partitioning disk devices
  2. D.2Filesystem types, creating, and checking filesystems
  3. D.3Mounting filesystems and /etc/fstab
  4. D.4Swap space
  5. D.5The Logical Volume Manager
  6. D.6Inside a traditional filesystem: inodes and links
E

How the Linux kernel boots

From firmware to a running kernel: boot loaders, GRUB, kernel parameters and secure boot. · 5 topics

  1. E.1Startup messages
  2. E.2Kernel initialization and parameters
  3. E.3Boot loaders and GRUB
  4. E.4UEFI secure boot and chainloading
  5. E.5Boot loader details: MBR and UEFI boot
F

How user space starts

What init and systemd do after the kernel hands over, and how to shut down and recover. · 7 topics

  1. F.1Introduction to init
  2. F.2systemd units and unit files
  3. F.3systemd operation, dependencies, and targets
  4. F.4System V runlevels and init
  5. F.5Shutting down your system
  6. F.6The initial RAM filesystem
  7. F.7Emergency booting and single-user mode
G

System configuration

Logging, the /etc directory, user accounts, time, scheduled jobs and authentication. · 8 topics

  1. G.1System logging: the journal and syslog
  2. G.2The structure of /etc
  3. G.3User management files
  4. G.4getty, login, and setting the time
  5. G.5Recurring tasks with cron and timer units
  6. G.6One-time tasks with at and user timer units
  7. G.7User IDs and user access
  8. G.8Pluggable Authentication Modules
H

Processes and resource utilization

Tracking processes, open files and system calls, threads, and measuring and limiting resource use. · 6 topics

  1. H.1Tracking processes
  2. H.2Open files, file descriptors, and lsof
  3. H.3Tracing program execution and system calls
  4. H.4Threads
  5. H.5Resource monitoring: CPU, memory, and I/O
  6. H.6Control groups and performance tuning
I

Your network and its configuration

How Linux joins a network: layers, IP, routes, interfaces, name resolution, DHCP, routing, NAT and firewalls. · 13 topics

  1. I.1Network basics, packets, and layers
  2. I.2The internet layer and IP addresses
  3. I.3Routes, the routing table, and the default gateway
  4. I.4IPv6 addresses and networks
  5. I.5Basic ICMP and DNS tools
  6. I.6Ethernet and kernel network interfaces
  7. I.7Configuring interfaces and network managers
  8. I.8Resolving hostnames and localhost
  9. I.9The transport layer: TCP, UDP, and services
  10. I.10DHCP and automatic IPv6 configuration
  11. I.11Linux as a router: private networks and NAT
  12. I.12Firewalls
  13. I.13ARP, NDP, and wireless Ethernet
J

Network applications and services

How network servers work, the tools to diagnose them, and how to keep them secure. · 5 topics

  1. J.1The basics of network services
  2. J.2Network servers and SSH
  3. J.3Diagnostic tools and remote procedure calls
  4. J.4Network security and hardening
  5. J.5Network sockets and Unix domain sockets
K

Shell scripts

Writing shell scripts: quoting, variables, exit codes, conditionals, loops and the utilities scripts lean on. · 8 topics

  1. K.1Script basics, quoting, and literals
  2. K.2Special variables and exit codes
  3. K.3Conditionals
  4. K.4Loops and command substitution
  5. K.5Temporary files and here documents
  6. K.6Important shell script utilities
  7. K.7Subshells, including files, and reading input
  8. K.8When (not) to use shell scripts
L

Network file transfer and sharing

Copying files between machines and sharing them with rsync, Samba, SSHFS and NFS. · 3 topics

  1. L.1Quick copies and rsync
  2. L.2File sharing with Samba
  3. L.3SSHFS, NFS, and cloud storage
M

User environments

How shell startup files shape each user's environment, and how to write them safely. · 2 topics

  1. M.1Startup file guidelines and elements
  2. M.2Startup file order, defaults, and pitfalls
N

The Linux desktop and printing

The pieces of a Linux desktop, Wayland and X, D-Bus and printing. · 3 topics

  1. N.1Desktop components
  2. N.2Wayland and the X Window System
  3. N.3D-Bus and printing
O

Development tools

The C compiler, make and the other tools used to build software on Linux. · 3 topics

  1. O.1The C compiler and linking
  2. O.2make
  3. O.3Lex, Yacc, scripting languages, and Java
P

Compiling software from source

Building and installing software from C source, and how packages fit in. · 3 topics

  1. P.1Build systems, source packages, and GNU Autoconf
  2. P.2Installation practice and package managers
  3. P.3Applying patches and troubleshooting builds
Q

Virtualization

Virtual machines, containers and runtime-based virtualization. · 3 topics

  1. Q.1Virtual machines
  2. Q.2Containers: namespaces and cgroups
  3. Q.3Runtime-based virtualization
★

Unit quizzes and final exam

Question banks with a fresh draw on every attempt. Every quiz is free.

Section order follows Brian Ward, How Linux Works (3rd ed.) chapter by chapter; topics follow its sections.