Linux is a family of free operating systems built around the Linux kernel, with tools from the GNU project and many others on top. It runs servers, phones, routers, supercomputers and desktops. Learning it means learning how a modern operating system really works, because every part can be read, changed and rebuilt.
Key concepts
- Everything is a file: devices, pipes and sockets share one interface of open, read, write and close.
- Processes and permissions: every process has a user, a group and a set of rights; the kernel enforces them.
- The shell: a text interface where small programs combine through pipes and redirection.
- Packages and distributions: a distribution bundles the kernel, libraries and a package manager that installs and updates software.
- Services: an init system such as systemd starts, supervises and logs the background programs.
Vocabulary
- Kernel space and user space: the privileged core versus the programs it runs.
- Root: the superuser account that bypasses permission checks; use it sparingly.
- Mount: attaching a file system to a directory in the single tree that starts at
/. - Syscall: the doorway through which a program asks the kernel for something.
What to study, in order
- Live in the shell for a while: navigate, search, edit text, read the manual pages.
- Learn users, groups, permissions and the directory layout, and break a virtual machine on purpose.
- Write shell scripts that chain tools with pipes.
- Manage services and logs, install and remove packages, configure networking from the command line.
- Trace a program with
straceand read what it asks the kernel for.