How to Master Linux: The Complete 2027 Roadmap for Linux and the Command Line
A free, staged path from opening your first terminal to administering servers, writing reliable shell scripts and debugging performance problems, with time estimates, the best free books, practice games, certifications and projects.
Last reviewed: December 2026 (Ubuntu 26.04 LTS, Debian 13, Linux kernel 7.3 stable / 6.18 LTS)
If you want to learn Linux in 2027, for software development, DevOps, cloud, cybersecurity or simply to stop being afraid of the terminal, this roadmap shows what to learn, in what order and with which free resources. Linux runs the vast majority of servers, cloud instances, containers, Android phones and supercomputers. Mastering the Linux command line and the system underneath it is one of the highest-leverage skills in tech: every other tool you use (Git, Docker, Kubernetes, databases) assumes it.
Table of contents
- Who this roadmap is for
- Linux in late 2026
- The roadmap at a glance
- Stage 0: Get a Linux environment
- Stage 1: Terminal basics
- Stage 2: Text processing and pipelines
- Stage 3: Users, permissions, processes, packages
- Stage 4: Shell scripting
- Stage 5: System administration
- Stage 6: Networking and security
- Stage 7: Performance, troubleshooting and internals
- Choosing a distribution
- Linux certifications compared
- Essential command cheat sheet
- Best free resources
- Books (free and paid)
- Modern command-line tools
- Projects
- Common mistakes
- FAQ
- Where to go next
- Contributing
Who this roadmap is for
| Goal | Focus on | Time (8-12 h/week) |
|---|---|---|
| Developer who wants terminal fluency | Stages 0-4 | 2-3 months |
| DevOps / cloud / SRE | Stages 0-7 | 6-9 months |
| Cybersecurity | Stages 0-6, plus Bandit and security track | 4-6 months |
| Linux desktop user | Stages 0-3 and the distro section | 1-2 months |
| Sysadmin certification (LFCS, RHCSA) | Stages 0-6 + exam objectives | 4-6 months |
Linux in late 2026
- Ubuntu 26.04 LTS “Resolute Raccoon” was released on 23 April 2026 with Linux 7.0, with standard support until April 2031 (release notes).
- Debian 13 “trixie” is Debian’s current stable release (release page).
- Kernel: as of 30 November 2026, kernel.org lists 7.3.x as the latest stable series and 6.18, 6.12, 6.6, 6.1, 5.15 and 5.10 as longterm branches (kernel.org, release policy). You don’t need to track kernel versions to learn Linux; your distribution handles them.
- Trends worth knowing: systemd is standard on major distros; nftables is replacing iptables; immutable/atomic desktop variants (for example Fedora Silverblue) are growing; eBPF is changing observability and networking; Rust code is increasingly part of the kernel.
The roadmap at a glance
Stage 0 Environment 1 day VM, WSL2, cloud VM or a spare laptop
Stage 1 Terminal basics 2-3 weeks navigation, files, help, editors
Stage 2 Text + pipelines 2-3 weeks grep, sed, awk, find, pipes, redirection
Stage 3 System concepts 2-4 weeks users, permissions, processes, packages
Stage 4 Shell scripting 3-4 weeks bash, ShellCheck, robust scripts, cron
Stage 5 Administration 4-6 weeks systemd, logs, storage, boot, backups
Stage 6 Networking + security 3-4 weeks ip, ss, DNS, SSH, firewalls, hardening
Stage 7 Performance + internals ongoing /proc, strace, perf, eBPF, kernel basics
Stage 0: Get a Linux environment (1 day)
| Option | Effort | Best for | Notes |
|---|---|---|---|
| WSL2 on Windows | Low | Windows users who code | Install guide; a real Linux kernel in a lightweight VM |
| Virtual machine | Low-medium | Safe experimentation | VirtualBox (free), or Multipass for quick Ubuntu VMs |
| Cloud VM | Low | Server skills | Small VPS or free tiers from major clouds; learn SSH from day one |
| Browser labs | None | Zero install | Killercoda and iximiuz Labs give free browser-based Linux playgrounds |
| Dual boot / spare laptop | Medium | Daily driving | Best immersion; back up first |
| macOS terminal | None | Mac users | Unix-like and useful, but BSD tools differ from GNU; still practice on real Linux |
Best pick: a VM or WSL2 for daily practice, plus a cheap cloud VM once you reach Stage 5, because administering a real internet-facing server teaches things a VM can’t.
Stage 1: Terminal basics (2-3 weeks)
Learn
- What the shell is (bash, zsh, fish) vs the terminal emulator
- The filesystem hierarchy:
/,/home,/etc,/var,/usr,/tmp,/proc,/dev - Navigation:
pwd,ls -la,cd, absolute vs relative paths,~,.and.. - Files:
touch,mkdir -p,cp -r,mv,rm -r(no undo),ln -s - Viewing:
cat,less,head,tail -f,wc - Getting help:
man,--help,tldr(tldr pages), explainshell - Globbing:
*,?,[abc], brace expansion{a,b} - History and shortcuts:
Ctrl-R,Ctrl-A/E,Ctrl-C,!!, tab completion - One terminal editor:
nanofor now, and learn enoughvimto edit and quit (i,Esc,:wq,:q!)
Resources
| Resource | Format | Why |
|---|---|---|
| The Linux Command Line by William Shotts | Free PDF (CC BY-NC-ND 3.0) | Best pick: the classic, freely available book; part 1 covers this stage |
| Linux Journey | Free interactive lessons (now hosted by LabEx) | Bite-sized topics from basics to networking |
| The Odin Project: Command line basics | Free lesson | Developer-focused intro |
| Ryan’s Linux tutorial | Free tutorial | Clear, short chapters |
| MIT Missing Semester | Free lectures | Shell, scripting, editors, data wrangling for programmers |
| freeCodeCamp: Introduction to Linux | Video course | Full beginner course |
| freeCodeCamp: 50 most popular Linux commands | Video | Command-by-command tour |
| Vim Adventures / Open Vim | Game (first levels free) / free tutorial | Painless vim basics; vimtutor in your terminal is also free |
Exercises
- Organize a messy downloads folder entirely from the terminal.
- Find out what every top-level directory under
/is for and write one line each. - Play OverTheWire Bandit levels 0-10.
Stage 2: Text processing and pipelines (2-3 weeks)
The Unix philosophy: small programs that do one thing, combined with pipes.
Learn
- Standard streams: stdin, stdout, stderr;
>,>>,2>,2>&1,&>,<,|,tee grep(andgrep -rniE),sort,uniq -c,cut,tr,paste,columnfindwith-name,-type,-mtime,-size,-exec;xargssedfor substitution (sed -E 's/old/new/g')awkfor columns and simple reports- Regular expressions (basic vs extended)
jqfor JSON (jqlang.org)- Command substitution
$(...), process substitution<(...)
# Top 10 IP addresses in a web server access log
awk '{print $1}' access.log | sort | uniq -c | sort -rn | head -10
# Files over 100 MB modified in the last week
find / -xdev -type f -size +100M -mtime -7 2>/dev/null
# Count error lines per hour from a log with ISO timestamps
grep ERROR app.log | cut -c1-13 | uniq -c
Resources
- learnbyexample: free online books on grep, sed, awk and more, with exercises (GNU grep and ripgrep)
- Command-line text processing: companion collection
- Grymoire Unix tutorials: long-standing guides to sed, awk, regex and quoting
- The Art of Command Line: one page of dense, practical tips
- Effective Shell: free online book on productive shell use
- cmdchallenge: solve tasks with one-line commands in the browser
Exercises
- Solve 20 cmdchallenge problems.
- Bandit levels 11-20.
- Download a public CSV and answer five questions using only
cut,sort,uniq,awk.
Stage 3: Users, permissions, processes, packages (2-4 weeks)
Learn
Users and permissions
- Users, groups,
/etc/passwd,/etc/group,id,whoami sudoand why you don’t log in as root- Permissions
rwxfor user/group/other, octal (chmod 640),chown,umask - Special bits: setuid, setgid, sticky bit (
/tmp) - ACLs (
getfacl,setfacl) at a high level
Processes
ps aux,top/htop,pgrep,kill, signals (SIGTERMvsSIGKILL)- Foreground/background jobs:
&,jobs,fg,bg,nohup; terminal multiplexers (tmux) - Exit codes,
$?,&&,|| - Environment variables,
PATH,export, shell startup files (.bashrc,.profile)
Packages
| Family | Tool | Distros |
|---|---|---|
| Debian | apt |
Debian, Ubuntu, Mint |
| Red Hat | dnf |
Fedora, RHEL, Rocky, AlmaLinux |
| Arch | pacman |
Arch, Manjaro |
| SUSE | zypper |
openSUSE, SLES |
| Universal | Flatpak, Snap, AppImage | Desktop apps across distros |
Exercises
- Create two users and a shared group directory where both can write but others can’t read.
- Start a long-running process, find it, send it
SIGTERM, then explore what happens withSIGSTOP/SIGCONT. - Bandit levels 21-30.
Stage 4: Shell scripting (3-4 weeks)
Learn
- Shebangs (
#!/usr/bin/env bash), making scripts executable - Variables and quoting (
"$var"almost always) - Conditionals with
[[ ... ]],case, loops, functions,local - Arguments:
$1,$@,$#,shift,getopts - Exit codes and
set -euo pipefail(and its caveats) trapfor cleanup; temporary files withmktemp- Here-documents
- Arrays and parameter expansion (
${var:-default},${file%.txt}) - Scheduling with
cronand systemd timers - When to stop and use Python instead (complex data structures, error handling, anything over a couple of hundred lines)
#!/usr/bin/env bash
# backup.sh: archive a directory with a timestamp, keep the last 7 archives
set -euo pipefail
src=${1:?usage: backup.sh <dir> [dest]}
dest=${2:-$HOME/backups}
mkdir -p "$dest"
stamp=$(date +%Y%m%d-%H%M%S)
archive="$dest/$(basename "$src")-$stamp.tar.gz"
tar -czf "$archive" -C "$(dirname "$src")" "$(basename "$src")"
echo "Created $archive"
# keep newest 7
ls -1t "$dest"/*.tar.gz | tail -n +8 | xargs -r rm --
Resources
| Resource | Why |
|---|---|
| BashGuide (Greg’s Wiki) | Best pick: correct, careful bash teaching |
| Bash Pitfalls | The common mistakes, explained |
| ShellCheck | Lints your scripts; run it on everything |
| GNU Bash manual | The reference |
| Advanced Bash-Scripting Guide | Huge and old; useful for examples, but cross-check style with ShellCheck |
| The Linux Command Line, part 4 | Scripting chapters in the free book |
Exercises
- Write
backup.shabove yourself from memory, then make it pass ShellCheck with zero warnings. - A script that checks disk usage and prints a warning when any filesystem exceeds 80%.
- A log-rotation script with a
--dry-runflag parsed bygetopts. - Schedule one of them with a systemd timer.
Stage 5: System administration (4-6 weeks)
Learn
| Topic | Key commands/files |
|---|---|
| Boot process | Firmware/UEFI, bootloader (GRUB), kernel, initramfs, systemd |
| Services | systemctl status/start/enable, unit files, timers (systemd.io) |
| Logs | journalctl -u nginx -f, /var/log, log rotation |
| Storage | lsblk, df -h, du -sh, partitions, mkfs, mount, /etc/fstab, LVM, ext4/XFS/Btrfs |
| Scheduling | cron, systemd timers |
| Users at scale | useradd, /etc/sudoers via visudo, SSH keys |
| Backups | rsync -a, snapshots, offsite copies, restore tests |
| Time | timedatectl, NTP/chrony |
| Updates | Unattended security upgrades, reboots for kernel updates |
| Containers intro | Namespaces and cgroups underneath Docker (see How to Master Docker) |
Resources
- Linux Upskill Challenge: free month-long course where you run your own internet-facing server; best pick for this stage
- Ubuntu Server documentation
- The Debian Administrator’s Handbook (free, open license; also on debian.org)
- Fedora documentation
- ArchWiki: excellent even if you don’t use Arch
- DigitalOcean community tutorials and their Getting Started with Linux series
- Linux Foundation: Introduction to Linux (LFS101) (free course; also on edX)
- Learn Linux TV (YouTube): sysadmin-focused tutorials
Exercises
- Write your own systemd service for a small web app; make it restart on failure and run as a non-root user.
- Add a disk to a VM, partition it, format it, mount it permanently via
/etc/fstabusing a UUID. - Break the VM’s boot on purpose (snapshot first), then recover it.
Stage 6: Networking and security (3-4 weeks)
Networking
- IP addressing, subnets/CIDR, routing, DNS, ports, TCP vs UDP
ip addr,ip route,ss -tulpn(replacesnetstat),ping,traceroute/mtr,dig,curl -v,nc/etc/hosts,/etc/resolv.conf, systemd-resolved, NetworkManager/netplan- Firewalls: nftables (wiki), ufw and firewalld front-ends
- Reverse proxies: Nginx or Caddy, TLS certificates via Let’s Encrypt
tcpdumpbasics
SSH
- Key-based auth (
ssh-keygen -t ed25519),~/.ssh/config, agent forwarding risks,scp/rsync - Port forwarding (
-L,-R), jump hosts (-J) - Hardening: disable password and root login, use fail2ban or equivalent (OpenSSH manuals)
Security hardening checklist
- Automatic security updates
- SSH keys only; root login disabled
- Firewall default-deny inbound, allow only needed ports
- Services run as dedicated unprivileged users
- Least-privilege
sudorules - Logs shipped somewhere you’ll look at them
- Backups tested; at least one copy offsite
- Mandatory access control understood (SELinux on Fedora/RHEL, AppArmor on Ubuntu/Debian) rather than disabled
Resources
- OverTheWire Bandit (finish it), then other OverTheWire wargames
- NetworkChuck (YouTube): beginner-friendly networking and Linux videos
- Linux Basics for Hackers, 2nd edition (paid): security-oriented introduction
Stage 7: Performance, troubleshooting and internals (ongoing)
A troubleshooting method
- What changed? Deploys, updates, config, traffic.
- USE method for each resource (CPU, memory, disk, network): Utilization, Saturation, Errors.
- Check logs (
journalctl -p err -b), then dig with tools.
| Question | Tools |
|---|---|
| What’s using CPU? | top, htop, pidstat, perf top |
| Memory? | free -h, vmstat 1, /proc/meminfo, OOM killer messages in dmesg |
| Disk? | iostat -xz 1, iotop, df -i (inodes!) |
| Network? | ss -s, sar -n DEV 1, nstat |
| What is this process doing? | strace -p PID, ltrace, lsof -p PID, /proc/PID/ |
| Deep observability | eBPF tools: bpftrace, BCC (ebpf.io) |
Resources
| Resource | Cost | Why |
|---|---|---|
| Linux performance (Brendan Gregg) | Free | Tool maps, methods and talks; the standard reference page |
| Systems Performance, 2nd ed. | Paid | Definitive book on performance analysis |
| How Linux Works, 3rd ed. by Brian Ward | Paid | How the system fits together, from boot to networking |
| The Linux Programming Interface by Michael Kerrisk | Paid | The system-call bible for programmers |
| Linux man pages (man7.org) | Free | Online, well-maintained man pages |
| Kernel documentation | Free | Official kernel docs |
| Kernel Newbies | Free | Starting point for kernel development, plus readable per-release change summaries |
| Linux Kernel Labs | Free | Hands-on kernel programming labs |
| Linux From Scratch | Free book | Build a Linux system from source; you’ll understand every piece |
| Google SRE book | Free online | Operations culture: monitoring, incidents, on-call |
| LWN.net | Free articles (some subscriber-early) | The best reporting on kernel and Linux development |
Choosing a distribution
| Distro | Best for | Package manager | Release style |
|---|---|---|---|
| Ubuntu (LTS) | Beginners, servers, cloud, most tutorials | apt | LTS every 2 years, 5 years standard support |
| Debian | Stable servers, minimalism | apt | Stable releases roughly every 2 years |
| Fedora | Up-to-date workstation, upstream of RHEL ecosystem | dnf | Every ~6 months |
| RHEL / Rocky / AlmaLinux | Enterprise servers, RHCSA prep | dnf | Long lifecycles |
| Linux Mint | Windows switchers | apt | Based on Ubuntu LTS |
| Arch | Learning by building your own setup | pacman | Rolling |
| openSUSE (Leap/Tumbleweed) | Stable or rolling, strong admin tooling | zypper | Fixed or rolling |
| Alpine | Containers, tiny images | apk | Small, musl-based |
Best pick: Ubuntu 26.04 LTS or Debian 13 for learning and servers; Fedora if you want newer software on the desktop; Rocky/Alma if you’re studying for RHCSA. Browse more at DistroWatch.
Linux certifications compared
All exams are paid. None are required to get a job, but they give structure and can help with HR filters.
| Certification | Body | Format | Level | Best for |
|---|---|---|---|---|
| Linux Essentials | LPI | Multiple choice | Entry | Proving basics |
| LPIC-1 | LPI | Multiple choice, 2 exams | Junior admin | Vendor-neutral sysadmin |
| LFCS | Linux Foundation | Performance-based (hands-on) | Junior-mid admin | Practical, distro-flexible |
| RHCSA (EX200) | Red Hat | Performance-based | Mid admin | Enterprise/RHEL jobs; well respected |
Best pick: RHCSA if you target enterprise roles; LFCS for a hands-on vendor-neutral option.
Essential command cheat sheet
# Navigation and files
pwd; ls -lah; cd -; tree -L 2
cp -a src/ dst/; mv old new; rm -ri dir/
find . -name '*.log' -mtime +7 -delete
# Viewing and searching
less file; tail -f /var/log/syslog
grep -rn "pattern" .; rg "pattern"
# Permissions and ownership
chmod 640 file; chmod -R u+rwX,go-rwx dir; chown user:group file
# Processes
ps aux --sort=-%mem | head; pgrep -a nginx; kill -TERM <pid>
htop
# Disk and memory
df -h; du -sh * | sort -h; free -h; lsblk
# Services and logs
systemctl status nginx; sudo systemctl restart nginx
journalctl -u nginx --since "1 hour ago"
# Networking
ip -br addr; ip route; ss -tulpn; dig example.com; curl -I https://example.com
# Archives
tar -czf out.tar.gz dir/; tar -xzf out.tar.gz
# Remote
ssh -i ~/.ssh/id_ed25519 user@host; rsync -avz dir/ user@host:/path/
Best free resources
Learn and practice
| Resource | Type | Level |
|---|---|---|
| The Linux Command Line | Free book | Beginner-intermediate |
| Linux Journey | Interactive lessons | Beginner |
| OverTheWire Bandit | Game | Beginner-intermediate |
| cmdchallenge | Puzzles | Beginner-intermediate |
| Linux Upskill Challenge | Month-long course | Intermediate |
| MIT Missing Semester | Lectures | Beginner-intermediate |
| Effective Shell | Free book | Intermediate |
| learnbyexample books | Free books | Intermediate |
| Linux Foundation LFS101 | Course | Beginner |
| Killercoda / iximiuz Labs | Browser labs | All |
| roadmap.sh Linux | Visual roadmap | All |
Reference
- ArchWiki
- man7.org man pages
- GNU Coreutils manual
- The Linux Documentation Project (many guides are old; good for concepts)
- tldr pages, explainshell
Community Q&A
YouTube
- Learn Linux TV: sysadmin tutorials and full courses
- NetworkChuck: energetic beginner content
- DistroTube: desktop Linux, window managers, command-line tools
- Brodie Robertson: Linux news and tools
- freeCodeCamp: Linux crash course
Books (free and paid)
| Book | Cost | Level |
|---|---|---|
| The Linux Command Line (free internet edition; 3rd print edition from No Starch, paid) | Free / paid print | Beginner |
| The Debian Administrator’s Handbook | Free | Intermediate |
| Effective Shell | Free online | Intermediate |
| Linux From Scratch | Free | Advanced |
| How Linux Works, 3rd ed. | Paid | Intermediate |
| Linux Basics for Hackers, 2nd ed. | Paid | Beginner (security) |
| Systems Performance, 2nd ed. | Paid | Advanced |
| The Linux Programming Interface | Paid | Advanced |
Modern command-line tools
| Classic | Modern alternative | Why |
|---|---|---|
grep -r |
ripgrep (rg) |
Much faster, respects .gitignore |
find |
fd | Simpler syntax |
| history search | fzf | Fuzzy-find anything |
| JSON with sed/awk | jq | Proper JSON processing |
top |
htop, btop |
Friendlier views |
man |
tldr | Example-first summaries |
screen |
tmux | Persistent, splittable sessions |
| bash | zsh + Oh My Zsh, or fish | Nicer interactive experience (still script in bash/sh for portability) |
Learn the classics first: they’re on every server; the modern tools often aren’t.
Projects
Beginner
- Dotfiles repo: your
.bashrc, aliases and editor config in Git, with an install script. - Log detective: analyze a public web server log; produce a top-10 report with a single pipeline.
- Finish Bandit and write up each level’s lesson (without publishing passwords).
Intermediate
- Personal server: VPS with SSH hardening, firewall, Nginx/Caddy, HTTPS, automatic updates, and a static site.
- Backup system: scripted
rsyncor snapshot backups with retention and a monthly restore test. - Monitoring script: a systemd timer that checks disk, memory and service health and sends you an alert.
- Home lab: Raspberry Pi or old laptop running file sharing, DNS ad-blocking and a reverse proxy.
Advanced
- Infrastructure as code: provision and configure the personal server with Ansible so you can rebuild it from scratch.
- Performance investigation: load-test a service, find the bottleneck with the USE method and
perf/bpftrace, write a report. - Linux From Scratch: complete the book.
- Kernel module: a “hello world” module, then a simple character device (in a VM).
Common mistakes
- Running everything as root, or
chmod 777to “fix” permissions. rm -rf $DIR/with an unset variable. Useset -uand${DIR:?}.- Unquoted variables in scripts (
$fileinstead of"$file"). - Copy-pasting commands from the internet without understanding them (check with explainshell).
- Parsing
lsoutput in scripts. - Disabling SELinux/AppArmor instead of learning to read their denials.
- No backups, or backups never restored.
- Learning only on a desktop and never managing a remote server over SSH.
- Memorizing commands instead of understanding concepts (processes, permissions, file descriptors).
- Distro-hopping instead of learning.
FAQ
How long does it take to learn Linux? Basic terminal comfort: 2-3 weeks of daily practice. Junior sysadmin level: 4-6 months. Real expertise grows over years of operating systems.
Which Linux distro is best for beginners? Ubuntu LTS or Linux Mint on the desktop; Ubuntu LTS or Debian for servers. The skills transfer across distros.
Can I learn Linux on Windows or a Mac? Yes: WSL2 on Windows gives you a real Linux environment; on a Mac use a VM or a cloud server. macOS’s terminal is Unix-like but differs in many details.
Do I need Linux for programming? Not strictly, but most servers and containers run Linux, so Linux skills make deployment, debugging and DevOps far easier.
Bash or zsh? Use whichever you like interactively (zsh is macOS’s default). Write scripts in bash (or POSIX sh) for portability.
Is Linux hard to learn? The basics aren’t. What takes time is building a mental model of processes, files, permissions and networking. Learning by solving real problems is the fastest path.
Which Linux certification is most valuable? RHCSA is the most widely recognized hands-on admin certification; LFCS is a good vendor-neutral alternative. Projects and a home lab often matter as much.
Should I learn Linux before Docker and Kubernetes? Yes. Containers are Linux processes with namespaces and cgroups; Linux knowledge makes container problems much easier to debug.
Where to go next
- Containers: How to Master Docker
- Version control: How to Master Git
- Databases on Linux: How to Master SQL
- DevOps path: roadmap.sh DevOps, then configuration management, CI/CD, Kubernetes and cloud
- Security path: more wargames, then capture-the-flag events and a security certification
Contributing
Suggestions and corrections are welcome as issues or pull requests. Please link only to official, author-hosted or openly licensed resources, mark paid ones as paid, and write explanations in your own words.
If this helped you, a star helps others find it.
License
Content licensed under CC BY 4.0.
More free resources
Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.