Demo mode This site is not live. It is currently being tested and developed. Nothing on here represents an offer.
← Exit course IT-202 Linux Command Line and System Administration
Course progress, 0 of 14 parts done0%

Summary

Download as PDF

  • 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 cat and grep work on them. /dev/null discards, /dev/zero supplies zeros, /dev/urandom supplies randomness, /proc and /sys expose kernel state.
  • Key hierarchy distinctions: /usr/bin is the package manager's, /usr/local is yours; /etc is configuration you write, /var/lib is state the system maintains; /tmp clears on reboot, /var/tmp survives, /run is in memory.
  • /bin, /sbin and /lib are now symlinks into /usr - the usr-merge. Both paths refer to one file, provable with ls -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 policy shows 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 passwd and man 1 passwd are different documents. man -f lists sections; man -k searches 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.