Chapter 3. System Basics and the Command Line

A Debian system is administered through a shell. The desktop, the remote SSH session, the installer's rescue mode, and the service manager all eventually start programs from a command line, and most of Debian's configuration lives in text files that are read and edited with ordinary tools. Fluency with sessions, privileges, paths, streams, and text is therefore not preparation for administration; it is administration.

This chapter builds that foundation on the system installed in Chapter 2. It begins with how a login becomes a session and how an ordinary identity gains administrative privilege, then covers the shell's syntax and job control, the filesystem layout and links, reading and editing text, finding and packaging data, and diagnosing command failures. Later chapters assume this material: editing a configuration file, running a privileged command, or reading a manual page will not be re-explained.

The conventions follow Chapter 1: commands entered in an ordinary user's shell begin with $, commands entered in a root shell begin with #, and the marker is documentation that is not typed. Each console block shows one complete command followed by its own output. [...] marks lines omitted from a longer output. The examples run on the same Debian 13.7 amd64 system named trixie used throughout the book, with the ordinary account john. Timestamps, process identifiers, inode numbers, and checksums on your system will differ.

The remote examples connect with SSH. For the captured transcripts the client is the system itself, connecting to its own sshd through the loopback address; that exercises the full SSH path - host-key verification, authentication, pseudo-terminal allocation, and session setup - and is a convenient way to practice before working on a remote machine. In normal use the client is your workstation and the server is reached by name or address.

In this section