Summary
- Three shifts at this level: command line first, Linux rather than Mint, and mechanism rather than procedure. Mechanism covers situations nobody anticipated.
- Unix philosophy: small tools that do one thing, composed together, communicating in text. This is why a handful of commands can answer questions no single program was written for.
- "Everything is a file" means devices, kernel data and process state are all presented as files, so
catandgrepwork on them./dev/nulldiscards,/dev/zerosupplies zeros,/dev/urandomsupplies randomness,/procand/sysexpose kernel state. - Key hierarchy distinctions:
/usr/binis the package manager's,/usr/localis yours;/etcis configuration you write,/var/libis state the system maintains;/tmpclears on reboot,/var/tmpsurvives,/runis in memory. /bin,/sbinand/libare now symlinks into/usr- the usr-merge. Both paths refer to one file, provable withls -i.- Kernel space and user space are separated by the processor. A system call is the only doorway. This is why an application crash cannot take down the system, why permissions cannot be bypassed by a clever program, and why a new kernel needs a reboot.
- Layers: Debian gives packaging and conventions, Ubuntu gives versions and the kernel, Mint gives Cinnamon and its own tools.
apt policyshows which supplied a given package. - Manual sections matter: section 1 is the command, section 5 is the file format, section 8 is administration.
man 5 passwdandman 1 passwdare different documents.man -flists sections;man -ksearches descriptions. - Manual pages open in
less: / searches, n repeats, q quits. Searching for the exact option beats scrolling. - The local manual describes your installed version, which a search result cannot.