Part I
Foundations
Updated November 1, 2026
This book starts with an empty terminal. By the end of the first part you will move around the filesystem without thinking, read and edit files, chain commands into pipelines, and find answers yourself in man. This is the foundation. Without it, the administration in Part II turns into memorizing commands by rote. With it, the same work becomes something you understand.
Who this is for. You have opened a terminal once or twice and closed it. Or never opened it at all. You have no Linux experience, and that is fine. The book is written for exactly this start.
What you need. A Linux system where you can make mistakes without consequences. The quickest start is our sandbox: a real Linux right in the browser, nothing to download or install, and everything the chapters of Part I ask for is already there. If you want a system of your own, there are three paths:
- A virtual machine (VirtualBox, UTM, VMware) with Ubuntu or Fedora. The safest path: break it, roll back the snapshot.
- WSL2 on Windows:
wsl --installin PowerShell puts Ubuntu inside Windows. - A container:
docker run -it ubuntu bash, if you already have Docker. Be aware that the officialubuntuimage is stripped down: it has noless, nonano, novi, and nosudo, andman lsprints a note about the system being minimized instead of the page. Chapters 6, 8, and 9 cannot be done in such a container.
For a beginner I recommend the sandbox, and if you need a machine of your own, a virtual machine or WSL2. Chapter 2 covers all four options in detail.
How to read. Chapters go in order, each builds on the previous one. You can jump ahead, but the early chapters are best read in sequence. Inside chapters you will find "how it works" boxes. That is a second layer for those curious about how things work underneath. You can skip them and come back later. Each chapter ends with exercises and a short summary.
Conventions. Commands are set in monospace. The $ at the start of a line is the shell prompt for a regular user; you do not type it. A # at the start of a line would mean the root (superuser) prompt. Inside a line # means something else: it starts a comment, and the shell throws away everything from it to the end of the line, so the notes to the right of the commands in the examples are not typed either. We hardly ever work as root: in Part I superuser rights are needed only in Chapter 9, to install the locate package and refresh its index, and in the rare case from Chapter 8 where the help index has not been built. Everything else is done as a regular user, and that is the safer way.