Back
Unit 1
Unit 2
Unit 3
Unit 4
Unit 5
Unit 6
Unit 7
Computing and the Command Line · Course 3 of 4
Living on Linux
Moving from Windows to Linux as an everyday system and running it with confidence from the command line. Choosing a distribution and installing it, alongside Windows or instead; software from apt, snaps, and Flatpak, and keeping it updated; systemd services, logs, and timers; disks, filesystems, and mounting; networking and SSH; users, security, and fixing a system that won't behave; and a home server project.
0 of 19 done
Start learning
Choosing and Installing
- 1 Distributions and Releases Strictly speaking, what does the word ‘Linux’ name? Linux on a desktop comes as a distribution: the kernel plus tools, a package manager, a desktop, an installer, and years of updates. How releases and long-term support work, using Ubuntu's two-year… Next up
- 2 Trying Linux from a USB Stick You copy the 6 GB Ubuntu image file onto a USB stick, like any other file. Will the computer start from the stick? Run a complete Ubuntu desktop from a USB stick without changing anything on the computer. Download the 26.04.1 image, check it against Ubuntu's published SHA-256 checksums from Git Bash or… Next up
- 3 Installing Alongside Windows or Instead On a computer with both Windows and Ubuntu, Windows’ clock is off by five or six hours after you’ve used Ubuntu. Why? Three ways to install: on a drive or computer of its own, alongside Windows on one drive, or replacing Windows. Preparing a Windows 11 computer for sharing a drive: back up, save the BitLocker… Next up
Software and Updates
- 4 apt and Debian Packages You remove a small library package that a web server you rely on depends on. What does apt plan to do? Ubuntu's software comes as .deb packages from the Ubuntu archive, organized into pockets (release, security, updates, backports) and components (main, restricted, universe, multiverse). apt update… Next up
- 5 Snaps and Flatpaks The same app installed as a snap usually takes more disk space than as a regular Ubuntu package. Why? Two newer package formats that ship apps straight from their publishers, bundled with what they need and usually sandboxed. Snaps are built into Ubuntu: snap list, find, info, install, channels… Next up
- 6 Keeping the System Updated An update replaces a library that a long-running program uses. Until that program restarts, which copy does it use? What updates itself and what doesn't. unattended-upgrades installs security fixes daily, its settings and logs, and when it reboots; phased updates and packages kept back; needrestart and… Next up
Services and Logs
- 7 systemd and systemctl You fix a service’s setting by editing its unit file where the package installed it, under /usr/lib. What goes wrong later? systemd is process 1: it boots the system and starts and supervises everything else as units, such as services, timers, mounts, and targets. Reading systemctl status, with its colored dot, Loaded… Next up
- 8 Reading Logs with journalctl Left alone for years, how much disk space does Ubuntu’s system journal end up taking? On a systemd system, the kernel, every service, and every program systemd runs log to one place, the journal, kept across reboots in /var/log/journal. journalctl reads it: by boot (-b, -b -1… Next up
- 9 Timers and Your Own Services Why run your own nightly backup job as a user service rather than a system-wide one? Write your own systemd units: a user service that runs the Shell course's snapshot-backup script, and a timer that starts it every night at 2:30. Type=oneshot, the %h and %u specifiers, OnCalendar… Next up
Disks and Filesystems
- 10 Disks, Partitions, and Filesystems You copy files to a USB drive, the copy finishes, and you pull the drive out without ejecting it. What’s the risk? Linux has no drive letters: each file system is mounted somewhere in one directory tree. Disks and their partitions as devices (sda1, nvme0n1p2), listed by lsblk; what a typical Ubuntu disk holds… Next up
- 11 Mounting Drives and /etc/fstab You mount a drive on a folder that already has files in it. What happens to those files? Seeing what's mounted with findmnt and mount, and mounting and unmounting by hand at a mount point you create. Why the desktop's automatic mounts under /media only happen while you're logged in, and… Next up
-
12
Disk Space and Disk Health
Your home folder’s hidden
.cachefolder has grown to several gigabytes. What happens if you delete a program’s folder inside it? Finding where the space went: df for whole file systems, du for folders, sorted with sort -h, ncdu to explore, and find -size for big files. The usual space users and how to clear them safely: apt's… Next up
Networking and SSH
- 13 How Your Machine Is Connected A program on your laptop listens only at 127.0.0.1, the address a machine uses to talk to itself. Who can connect to it? The pieces of a home network as Linux sees them: IP addresses, private ranges, and netmasks; network interfaces with predictable names; the router as DHCP server, gateway, and DNS helper; and names… Next up
- 14 SSH to Other Machines You’ve used SSH with a server for months. Today ssh refuses to connect, warning loudly that the server’s key has changed. What’s it guarding against? SSH gives you a shell on another computer over an encrypted connection. Installing the OpenSSH server, the first connection and its host-key fingerprint, logging in with keys instead of passwords… Next up
- 15 Long Sessions with tmux You start an hour-long copy on a server over SSH, and halfway through your laptop’s Wi-Fi drops. What happens to the copy? If an SSH connection drops, the shell and whatever it was running go with it. tmux keeps sessions running on the server: start a named session, detach with Ctrl-b d, list and reattach later from… Next up
Security and Troubleshooting
-
16
Firewall, Updates, and Accounts
An install guide says to paste
curl https://example.com/install.sh | sudo bash. What does that line do? Security as layers. Updates first, since unattended-upgrades closes most holes before they're used. The ufw firewall: off by default, deny incoming, allow SSH from your own network or rate-limited… Next up - 17 When Something Breaks Your Ubuntu desktop freezes: the mouse and windows won’t respond. What’s often still true? A method for any problem (what changed, the exact error, the journal, one change at a time) and first steps for the common kinds: a frozen desktop, fixed from a text console; a misbehaving program… Next up
Project: A Home Server
- 18 Setting Up the Server Ubuntu installs security updates by itself every day. On a server nobody logs in to, what’s left undone by default? An old laptop becomes an always-on home server. Ubuntu Server 26.04 LTS: requirements, the live-server image and its checksum, and the installer's screens, including installing OpenSSH and importing… Next up
- 19 Backups and Health Checks The weekly push of laptop files to the server is run by hand, not on a timer. What stops it being automatic? Give the server its first job: three copies of your laptop's files. A weekly push-to-server function mirrors Documents and Pictures over SSH with rsync; the server's backup drive is mounted from… Next up