Linux basics
Raspberry Pi OS is Debian Linux. The lab sheets tell you which commands to type; this page is about reading what Linux tells you back, so you can work out the rest yourself.
sudo, su and root
root is the administrator account: it can change anything, including breaking the system. Normal user pi cannot install software, edit files in /etc or start services. sudo lets pi do those things one command at a time.
Users and groups
Linux decides what you may do by who you are (user) and which groups you are in. Many "Permission denied" problems in the labs are really "you are not in the right group".
Services, systemctl and logs
A service is a program that runs in the background, usually from boot: Apache (apache2), MariaDB (mariadb), SSH (ssh). systemd starts and watches them; systemctl is how you talk to it; journalctl reads their logs.
Installing software (apt and dpkg)
Raspberry Pi OS installs software as packages from online repositories. Two tools:
dpkg-reconfigure
Some packages ask questions while they install, in a blue text screen. If you skipped one, answered it wrongly or pressed Enter too fast, you do not need to reinstall. dpkg-reconfigure asks the questions again and redoes the setup.
Files, permissions and nano
nano in 30 seconds
Networking
Your IP address
Command cheat sheet
Moving around
Finding out what is wrong
The lab sheets tell you what to type when everything works. When it does not, these commands tell you why, so you can fix it instead of starting over.