Skip to the content.

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

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


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

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

  1. Organize a messy downloads folder entirely from the terminal.
  2. Find out what every top-level directory under / is for and write one line each.
  3. 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

# 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

Exercises

  1. Solve 20 cmdchallenge problems.
  2. Bandit levels 11-20.
  3. 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

Processes

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

  1. Create two users and a shared group directory where both can write but others can’t read.
  2. Start a long-running process, find it, send it SIGTERM, then explore what happens with SIGSTOP/SIGCONT.
  3. Bandit levels 21-30.

Stage 4: Shell scripting (3-4 weeks)

Learn

#!/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

  1. Write backup.sh above yourself from memory, then make it pass ShellCheck with zero warnings.
  2. A script that checks disk usage and prints a warning when any filesystem exceeds 80%.
  3. A log-rotation script with a --dry-run flag parsed by getopts.
  4. 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

Exercises

  1. Write your own systemd service for a small web app; make it restart on failure and run as a non-root user.
  2. Add a disk to a VM, partition it, format it, mount it permanently via /etc/fstab using a UUID.
  3. Break the VM’s boot on purpose (snapshot first), then recover it.

Stage 6: Networking and security (3-4 weeks)

Networking

SSH

Security hardening checklist

Resources


Stage 7: Performance, troubleshooting and internals (ongoing)

A troubleshooting method

  1. What changed? Deploys, updates, config, traffic.
  2. USE method for each resource (CPU, memory, disk, network): Utilization, Saturation, Errors.
  3. 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

Community Q&A

YouTube


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

  1. Dotfiles repo: your .bashrc, aliases and editor config in Git, with an install script.
  2. Log detective: analyze a public web server log; produce a top-10 report with a single pipeline.
  3. Finish Bandit and write up each level’s lesson (without publishing passwords).

Intermediate

  1. Personal server: VPS with SSH hardening, firewall, Nginx/Caddy, HTTPS, automatic updates, and a static site.
  2. Backup system: scripted rsync or snapshot backups with retention and a monthly restore test.
  3. Monitoring script: a systemd timer that checks disk, memory and service health and sends you an alert.
  4. Home lab: Raspberry Pi or old laptop running file sharing, DNS ad-blocking and a reverse proxy.

Advanced

  1. Infrastructure as code: provision and configure the personal server with Ansible so you can rebuild it from scratch.
  2. Performance investigation: load-test a service, find the bottleneck with the USE method and perf/bpftrace, write a report.
  3. Linux From Scratch: complete the book.
  4. Kernel module: a “hello world” module, then a simple character device (in a VM).

Common mistakes

  1. Running everything as root, or chmod 777 to “fix” permissions.
  2. rm -rf $DIR/ with an unset variable. Use set -u and ${DIR:?}.
  3. Unquoted variables in scripts ($file instead of "$file").
  4. Copy-pasting commands from the internet without understanding them (check with explainshell).
  5. Parsing ls output in scripts.
  6. Disabling SELinux/AppArmor instead of learning to read their denials.
  7. No backups, or backups never restored.
  8. Learning only on a desktop and never managing a remote server over SSH.
  9. Memorizing commands instead of understanding concepts (processes, permissions, file descriptors).
  10. 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


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.