Chapter 01 of 17
Understand your Linux system
Build a mental model of the kernel, distribution, terminal, shell, and filesystem before memorizing commands.
The mental model.
Linux is the kernel: it manages hardware, memory, processes, and access to devices. A distribution combines that kernel with tools, libraries, a package manager, and often a desktop. Ubuntu, Debian, and Fedora share concepts but differ in package names and administration defaults.
The terminal is the interface that carries input and output. Bash is a shell running inside it: it interprets commands and starts programs. A prompt ending in $ usually indicates a regular user; # commonly indicates root. Neither symbol belongs in the command you type.
A path beginning with / is absolute; other paths are relative to your working directory. / is the root directory, while /root is the root user’s home. ~ expands to your home. . means here and .. means the parent. Linux names are case-sensitive, and a leading dot hides a file from plain ls.
/home stores user data, /etc system configuration, /var changing data such as logs, /usr installed tools, /tmp temporary files, and /proc a live view of kernel and process information. Use man command, command --help, and apropos keyword to investigate unfamiliar tools.
Read it. Predict it. Try it.
Before running these commands, predict what each line will change or print. Launch a quest below to open the simulated terminal.
whoami
pwd
ls -la
cd /etc
pwd
cd ~Identify the user, inspect your starting directory including hidden files, visit system configuration, then return home. cd changes the shell’s working directory; it does not move files.
Check your understanding
Explain the why.
Put it into practice.
Complete the exercises, then try the Boss Challenge without hints. Each quest checks its own objectives. You can revisit this chapter at any time.
Make the learning stick.
Close the explanation and describe the main idea in your own words. Change a filename or input and predict the outcome. Tomorrow, repeat a quest without hints. Then apply it in a disposable real Linux environment.
Open the real-system labs →