LinuxUbuntu
Linux for servers
The shell, files, processes, users and networking you need on a server.
- 11 lessons
- 4h 30m estimated time
- 3 hands-on labs
- 0 animated diagrams
- 11 quizzes
3 beginner, 8 intermediate. Start at the top or pick a chapter below.
0 of 11 done
Saved in this browser as you finish lessons.
Find your way
The layout of a Linux server and how to work with files.
01 Up next Linux filesystem layout explained (/etc, /var, /usr, /home) The Linux filesystem is one tree starting at /, and the Filesystem Hierarchy Standard says where config (/etc), variable data and logs (/var), programs (/usr) and user files (/home) belong. 15 min Beginner 02 Up next Work with files safely on Linux (cp, mv, rm, find, grep) Working with files safely on Linux means checking where you are with pwd, previewing with ls or find before you delete, and never running rm -rf on a path you have not read twice. 20 min Beginner Lab 03 Up next Read and edit files on Linux (cat, less, tail, nano, vim) On a Linux server you read files with cat, less, head and tail, edit them with nano or vim, and always copy a config file to a backup before you change it. 20 min Beginner
Run things
Processes, users, environment, pipes and schedules.
04 Up next Linux processes and signals (ps, kill, SIGTERM, SIGKILL) A process is a running program with a PID, and you control it by sending signals with kill: SIGTERM asks it to stop cleanly, SIGKILL forces it, and SIGHUP usually asks it to reload. 25 min Intermediate Lab 05 Up next Linux users, groups and sudo explained (adduser, usermod, visudo) Linux identifies every account by a user ID and group IDs stored in /etc/passwd and /etc/group, and sudo lets chosen users run commands as root according to rules in /etc/sudoers. 25 min Intermediate 06 Up next Linux environment variables and shell profile (PATH, .bashrc, export) Environment variables are named values a process inherits from its parent, and which file sets them depends on whether the shell is a login shell, an interactive shell, or a systemd unit. 25 min Intermediate 07 Up next Pipes, redirects and xargs in Linux (|, >, 2>&1, tee) A pipe sends one command's output into the next command's input, redirects send output to files, and xargs turns lines of input into arguments for another command. 25 min Intermediate Lab 08 Up next Cron vs systemd timers: which to use for scheduled jobs Cron runs a command on a time pattern from a crontab line, while a systemd timer activates a service unit on a schedule and adds journal logging, missed-run catch-up and dependency control. 30 min Intermediate
Look after the machine
Network tools, packages and disks.
09 Up next Linux networking commands for servers (ip, ss, curl, dig, nc) Linux networking troubleshooting works in layers: ip shows addresses and routes, ss shows listening ports, ping and traceroute test reachability, dig tests DNS, and curl and nc test services. 30 min Intermediate 10 Up next Package management with apt on Ubuntu and Debian (and dnf) apt installs and updates software on Debian and Ubuntu from signed repositories; apt update refreshes the package lists and apt upgrade installs the newer versions. 25 min Intermediate 11 Up next Disk usage and mounts on Linux (df, du, lsblk, fstab) df shows free space per filesystem, du shows what uses it, lsblk and blkid identify disks, and /etc/fstab tells Linux which filesystems to mount at boot, where a bad line can stop the server booting. 30 min Intermediate