Topic 2 of 12
Linux and the shell
Get comfortable on a Linux server: the shell, files, permissions, processes, packages, services, logs and SSH, with safe commands you can run.
After this topic you can: You can log in to a Linux server, find your way around, run and stop programs, manage services, read their logs and set up key-based SSH access.
8 lessons · 86 min · 0 of 8 done
Best read after: DevOps and delivery fundamentals
Draft. This lesson is written and waiting for a person to run every command and review it. It is safe to learn from, but check the official documentation for anything you depend on.
Lessons, in order
- 1Shell basics: commands, pipes and redirectionCoreLearn how the shell runs commands, chains them with pipes, sends output to files with redirection, and uses exit codes to decide what happens next.10 min
- 2The Linux directory tree and where things liveCoreLearn how Linux arranges everything under one root, what /etc, /var, /home and /usr are for, and how paths and mounts work when you debug a server.8 min
- 3Users, groups, permissions and sudoCoreUnderstand who owns a file, how read, write and execute bits work for owner, group and others, and how sudo grants admin rights without logging in as root.12 min
- 4Processes and signals: see, stop and manage programsCoreLearn what a process is, how to list and stop programs with ps and kill, and why SIGTERM is the polite request while SIGKILL cannot be caught.11 min
- 5Package management with apt and dnfCoreLearn how apt and dnf find, install, update and remove software, how repositories and dependencies work, and how to trace which package owns a file.10 min
- 6systemd: run programs as servicesCoreLearn how systemd starts, stops, restarts and enables services at boot, how to read a unit file, and how to read status when a service fails to start.12 min
- 7Logs and journalctl: find out what happenedCoreLearn where Linux keeps logs, how to filter the systemd journal by unit, time and priority, and how to write your own test message when debugging a service.10 min
- 8SSH: log in to servers with keys, safelyCoreLearn how SSH proves who the server and you are, how key pairs and known_hosts work, and the safe defaults to set before a server faces the internet.13 min