Linux Roadmap for Beginners (2026)
Free Linux roadmap for beginners: terminal, files, permissions, Bash scripting, networking, SSH, systemd and server security, with a project per step.
Level: Beginner · Time: 3–4 months at ~8 h/week · Updated October 2026 by Ali Bashir
Who this roadmap is for
Complete beginners, students and Windows users who want a career in DevOps, cloud or security. You only need a computer that can run a virtual machine or WSL.
By the end you can
- Work confidently in the Linux terminal
- Manage users, permissions, packages and services
- Troubleshoot networks with ip, ss, curl and dig
- Automate tasks with Bash scripts and schedules
- Set up and secure a server you could put online
Step 1: Meet Linux and set it up
Linux runs most servers, clouds and containers, so it is the ground floor for DevOps and cloud work. This step explains what Linux is, helps you pick a distribution and gets a safe practice machine running on your own computer.
Time: 1 week. Skip if you already have an Ubuntu (or other Linux) machine, VM or WSL install that you can open a terminal on.
Topics
- What is Linux?
- Linux is a free, open-source operating system, the software that sits between your programs and the hardware. Most web servers, cloud machines, Android phones and containers run on it, which is why every DevOps and cloud job expects you to know it. The Linux Kernel Archives Linux Foundation: About Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (What is Linux?) Video: Linux in 100 Seconds
- Distributions
- The Linux kernel alone is not enough to use, so groups bundle it with tools, a package manager and settings. Each bundle is called a distribution (distro), such as Ubuntu, Debian or Fedora. They share the same core skills, so learning one teaches you most of the others. Debian: What is a distribution? Ubuntu: What is Ubuntu? Video: Why so many distros? The Weird History of Linux
- Ubuntu
- Ubuntu is one of the most popular Linux distros for beginners and for cloud servers. Pick an LTS (Long Term Support) version, which gets security updates for years. This roadmap uses Ubuntu for every example. Ubuntu tutorial: Install Ubuntu Desktop Ubuntu Server documentation Course: Linux Operating System - Crash Course for Beginners (Install Linux) Video: How to Install Ubuntu 24.04 LTS on VirtualBox in Windows 11 | AmitThinks
- VirtualBox
- VirtualBox lets you run Linux as a virtual machine (VM), a computer inside your computer. You can break it, reset it and try again without touching your main system. It is free and works on Windows, macOS and Linux. VirtualBox User Manual VirtualBox downloads Course: Linux Operating System - Crash Course for Beginners (Install Linux) Video: How to use VirtualBox - Tutorial for Beginners My short: No Experience? Break Things on Purpose
- Debian (alternative)
- Debian is the stable, community-run distro that Ubuntu is built on. It uses the same commands and the same apt package manager, so everything here works on it too. An alternative to Ubuntu; pick one. About Debian Debian installation guide Video: Debian is 30 this year. Here's why it's still worth using.
- Fedora (alternative)
- Fedora is a modern distro sponsored by Red Hat, and it is close to the Red Hat Enterprise Linux (RHEL) used in many companies. It uses dnf instead of apt for installing software. An alternative to Ubuntu; pick one. Fedora documentation Get Fedora Video: I Tried Linux Fedora (And It’s Amazing)
- WSL on Windows (alternative)
- WSL (Windows Subsystem for Linux) runs a real Ubuntu terminal inside Windows with one command. It is the quickest start if you are on Windows. Later projects on networking, firewalls and disks work better in a full VM, so plan to set one up by then. An alternative to VirtualBox for now; pick one. Microsoft: Install WSL Microsoft: What is WSL? Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (Setup For Windows (WSL)) Video: How to install Linux on Windows 11 with WSL for Beginners
Project: Your Linux practice lab
Install Ubuntu LTS in VirtualBox (or with WSL on Windows) and take a snapshot right after setup. Write a short README noting the version, how much RAM and disk you gave it, and how to restore the snapshot when you break something.
Common mistakes
- Installing a short-support release instead of an LTS version. Pick the current Ubuntu LTS release. Non-LTS releases stop getting security updates after about 9 months, and most cloud servers run LTS anyway.
- Practising risky commands on your main computer instead of a VM. Experiment inside a VM and take a snapshot first so you can roll back. In WSL, remember that /mnt/c is your real Windows drive, so deletes there are real.
- Switching distros every week instead of learning one well. Stay on one distro until the core skills feel easy. Files, permissions, processes and the shell work the same across distros, so the knowledge carries over later.
You're ready to move on when you can
- Explain the difference between the Linux kernel and a distribution
- Say why servers usually run an LTS release
- Start your Ubuntu VM or WSL terminal from scratch
- Restore a VM snapshot after making a change
Step 2: The terminal and navigation
Servers have no desktop, so you work through a terminal by typing commands. Getting comfortable moving around, opening files and finding help is the skill every later step builds on.
Time: 1–2 weeks. Skip if you can move around the file system, create, copy and delete files, and look up any command in its man page without a guide.
Topics
- The shell (Bash)
- The shell is the program that reads the commands you type and runs them. Bash is the default shell on most Linux systems, and the terminal is just the window it runs in. Everything else on this roadmap happens in the shell. Bash manual: What is a shell? GNU Bash home page Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (Shells and Bash) Video: Bash in 100 Seconds
- Terminal basics
- A command is a program name followed by options (like -l) and arguments (like a file name). Learn to read the prompt, run simple commands such as whoami, date and echo, and stop a stuck command with Ctrl+C. Ubuntu tutorial: The Linux command line for beginners Bash manual: Simple commands Course: Linux Operating System - Crash Course for Beginners (Terminal) Video: 60 Linux Commands you NEED to know (in 10 minutes)
- Navigating directories
- pwd shows where you are, ls lists what is in a folder, and cd moves you to another folder. Learn the shortcuts ~ (your home), . (here) and .. (one level up), and the difference between absolute and relative paths. ls(1) manual page GNU coreutils: pwd Course: Linux Operating System - Crash Course for Beginners (Working with Directories) Video: Basic Linux Navigation
- File system layout
- Linux keeps everything in one tree that starts at / (root). Some folders have fixed jobs: /home for users, /etc for settings, /var/log for logs and /tmp for temporary files. Knowing them tells you where to look when something breaks. hier(7): file system hierarchy Filesystem Hierarchy Standard 3.0 Course: Linux Operating System - Crash Course for Beginners (Linux File Structure) Video: Linux Directories Explained in 100 Seconds
- Working with files
- mkdir makes folders, touch creates empty files, cp copies, mv moves or renames and rm deletes. There is no recycle bin in the terminal, so rm is permanent; use rm -i while you learn. GNU coreutils: cp GNU coreutils: rm Course: Linux Operating System - Crash Course for Beginners (Working with Files) Video: Linux for Hackers // EP 1 (FREE Linux course for beginners)
- Viewing files
- cat prints a whole file, less lets you scroll through big files, and head and tail show the first or last lines. tail -f keeps showing new lines as they arrive, which is how you watch a log live. less(1) manual page GNU coreutils: tail Course: Linux Operating System - Crash Course for Beginners (Working with File Content) Video: Linux Command Line (07) Viewing Files (cat, more, less, head, tail)
- Getting help
- Every command has a manual page you open with man, for example man ls, and most also accept --help for a short summary. Learning to read these pages means you never get stuck waiting for a tutorial. man(1) manual page man-pages(7): how manual pages are organised Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (man) Video: HELP!! (for when you suck at Linux) // Linux for Hackers // EP3
- History & shortcuts
- Press Tab to finish file and command names, the Up arrow to repeat old commands and Ctrl+R to search your history. These shortcuts save typing and stop typos, so build the habit early. Bash manual: History facilities Bash manual: Command line editing Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (history) Video: 8 Bash Shortcuts Every Linux User Should Know
- Zsh (alternative)
- Zsh is another shell with nicer completion and themes, and it is the default on macOS. Most Bash commands work the same in it. An alternative to Bash for your own terminal; pick one, but still learn Bash for servers and scripts. Zsh home page and docs Video: zsh: Getting Started with the Z Shell (and oh-my-zsh)
- tldr pages (optional)
- tldr shows short, example-first help for common commands, like a cheat sheet. It is handy when a man page feels too long, but it does not replace man for the details. tldr pages Video: tldr-pages Explained: A Better Way to Read Linux Commands
- The Linux Command Line (free book)
- OverTheWire Bandit: learn the shell by playing
- Ubuntu tutorial: The Linux command line for beginners
Project: Terminal treasure hunt
Play OverTheWire Bandit up to level 10 using only the terminal. Keep a notes file listing each command you used and what it did, then push it to GitHub.
Common mistakes
- Running rm -r without checking which folder you are in. Run pwd and ls before deleting anything, and use rm -i while you learn. The terminal has no recycle bin, so deleted files are gone.
- Pasting commands from the internet without understanding them. Check each part with man or --help before running it, especially anything with sudo, rm, or curl piped into bash.
- Forgetting to quote file names that contain spaces. Wrap the name in quotes, like cd "My Files", or press Tab to let the shell fill it in. Without quotes the shell treats each word as a separate file.
You're ready to move on when you can
- Go to any folder using both an absolute and a relative path
- Create, copy, rename and delete files and folders
- Watch a growing file live with tail -f
- Find an option you need by reading a man page
Step 3: Files, permissions and editors
Linux decides who can read, change or run each file, and most "permission denied" errors come from this. You also need to edit config files on servers, where there is no mouse or desktop editor.
Time: 1–2 weeks. Skip if you can read ls -l output, fix permissions with chmod and chown, find files with find, and edit a file in nano or Vim.
Topics
- Permissions
- Every file has an owner, a group and three permission sets: read (r), write (w) and execute (x). ls -l shows them as a string like -rw-r--r--. Reading this string is the first step in fixing any "permission denied" error. GNU coreutils: File permissions ls(1) manual page Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (Understanding permissions) Video: Linux Crash Course - Understanding File Permissions
- chmod & chown
- chmod changes permissions, either with letters (chmod u+x script.sh) or numbers (chmod 644 file). chown changes who owns a file. Never "fix" problems with chmod 777, because it lets anyone change the file. chmod(1) manual page chown(1) manual page Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (chmod) Video: Linux File Permissions in 5 Minutes | MUST Know!
- Wildcards
- Wildcards (also called globbing) match many file names at once: * matches anything, ? matches one character and [abc] matches one of a set. For example, rm *.tmp deletes every .tmp file, so check with ls first. Bash manual: Filename expansion glob(7) manual page Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (expansions) Video: Globbing in Linux - How to use Wildcards
- Finding files
- find searches folders for files by name, size, age or type, for example find /var/log -name "*.log". It can also run a command on each result, which is useful for cleanup jobs. GNU findutils manual: find find(1) manual page Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (find) Video: Demystifying "find" and "find -exec" ...Lil' Linux Lesson!
- Links
- A symbolic (soft) link is a shortcut that points to another file or folder, made with ln -s. A hard link is a second name for the same file data. Servers use symlinks a lot, for example to switch between app versions. ln(1) manual page GNU coreutils: ln Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (ln) Video: Hard vs Soft Links in Linux (Linux Links)
- Archives (tar, gzip)
- tar bundles many files into one archive and gzip makes it smaller, giving files like backup.tar.gz. You will use them for backups, moving files between servers and opening downloaded software. GNU tar manual GNU gzip manual Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (gzip) Video: Linux Tutorial for Beginners - 10 - Compress and Extract tar and gz Files
- nano
- nano is a simple text editor that runs in the terminal and shows its shortcuts at the bottom of the screen. Ctrl+O saves and Ctrl+X exits. It is the easiest way to edit config files on a server. nano documentation nano cheat sheet Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (nano) Video: Linux Crash Course - nano (command-line text editor)
- Vim (alternative)
- Vim is a powerful terminal editor found on almost every server. It has modes: press i to type, Esc to stop, then :wq to save and quit. An alternative to nano; pick one, but learn enough Vim to save and exit. Vim documentation Vim user manual: About the manuals Course: Linux Operating System - Crash Course for Beginners (Text Editor) Video: Vim Basics in 8 Minutes
- umask (optional)
- umask sets the default permissions for new files and folders you create. A common value is 022, which gives new files rw-r--r--. You rarely change it, but it explains why new files look the way they do. umask(2) manual page Bash manual: Bourne shell builtins (umask) Video: Umask and Special File Permissions - Linux Tutorial 23
Project: Shared team folder
Create a /srv/team folder that two test users can both write to but other users cannot read. Add a symlink to it from each home folder, then archive it to a dated .tar.gz file. Write down every command and the final ls -l output.
Common mistakes
- Using chmod 777 or chmod -R to silence permission errors. Read ls -l, then fix the owner with chown or add only the missing bit, like chmod u+x. 777 lets any user on the system change or replace the file.
- Forgetting that folders need execute permission to be entered. To reach a file, every parent folder needs x for that user. Check the whole path at once with namei -l /path/to/file.
- Deleting files with wildcards or find without previewing the match. Run ls with the same pattern, or find without -delete, to see exactly what matches. Only then run the real command.
You're ready to move on when you can
- Explain what -rwxr-x--- means without looking it up
- Fix a "permission denied" error without using chmod 777
- Find all files over 100 MB under /var
- Edit, save and exit a file in nano and in Vim
Step 4: Text processing and pipes
Logs, configs and command output are all plain text on Linux. Joining small tools with pipes lets you search and summarise thousands of lines in seconds, which is a daily task in DevOps.
Time: 1–2 weeks. Skip if you can chain grep, sort, uniq and awk with pipes to answer a question like "which IP made the most requests in this log?".
Topics
- Pipes & redirection
- A pipe (|) sends the output of one command into the next, like ls | wc -l. Redirection saves output to a file with > (replace) or >> (add to the end), and 2> captures error messages. This is how small tools team up. Bash manual: Pipelines Bash manual: Redirections Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (redirecting standard output) Video: Linux Sysadmin Basics 04 -- Shell Features -- Pipes and Redirection
- grep
- grep prints the lines that match a word or pattern, for example grep error app.log. Options like -i (ignore case), -r (search folders) and -v (show non-matching lines) make it the fastest way to search logs and code. GNU grep manual grep(1) manual page Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (grep) Video: Linux Crash Course - The grep Command
- Regular expressions
- A regular expression (regex) is a pattern that describes text, such as ^ERROR for lines that start with ERROR or [0-9]+ for numbers. grep, sed and awk all use them. Patterns with + need extended mode, so use grep -E '[0-9]+'. A little regex goes a long way. GNU grep manual: Regular expressions regex(7) manual page Video: Regular Expressions (RegEx) in 100 Seconds
- sed
- sed edits text as it flows through, most often to find and replace, for example sed 's|http://|https://|g' file.txt. Single quotes stop the shell from changing the pattern, and any character (here |) can separate the parts, so you do not have to escape the slashes. With -i it changes files in place, which is handy for updating config files from a script. GNU sed manual sed(1) manual page Course: Bash Scripting Tutorial for Beginners (SED) Video: Linux Crash Course - The sed Command
- awk
- awk splits each line into columns so you can print or add up specific fields, for example awk '{print $1}' to get the first column. It is perfect for pulling numbers out of logs and command output. GNU Awk User's Guide gawk(1) manual page Course: Bash Scripting Tutorial for Beginners (AWK) Video: Linux Crash Course - awk
- sort, uniq & wc
- sort puts lines in order, uniq -c counts repeated lines next to each other, and wc -l counts lines. Together, as in sort | uniq -c | sort -nr, they give you a quick "top 10" of anything. GNU coreutils: sort GNU coreutils: uniq Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (wc) Video: Linux Sysadmin Basics 4.1 -- Filtering Output and Finding Things (&&, cut, sort, uniq, wc, grep)
- cut & tr
- cut picks out columns by a separator, for example cut -d: -f1 /etc/passwd lists user names. tr swaps or deletes characters, like turning lowercase into uppercase. Both are small, fast helpers in pipelines. GNU coreutils: cut GNU coreutils: tr Video: Two Powerful Command Line Utilities 'cut' And 'tr'
- xargs (optional)
- xargs turns lines of input into arguments for another command, for example find . -name '*.tmp' -print0 | xargs -0 rm. The -print0 and -0 pair keeps file names with spaces in one piece. It is useful when a command does not read from a pipe on its own. xargs(1) manual page GNU findutils manual Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (xargs) Video: Xargs Explained
- jq (optional)
- jq is like sed and awk for JSON, the data format most APIs and cloud tools return. For example, curl ... | jq ".name" pulls out one field. You will want it as soon as you work with cloud CLIs. jq manual jq home page Video: jq JSON Processor Tutorial: How to access JSON data from the command line with the jq parser
Project: Log detective
Download a free sample web server access log (or use your own /var/log files) and answer five questions with one-line pipelines: top 10 IPs, most requested pages, number of 404 errors, busiest hour and most common user agent. Save each command and its answer in a README.
Common mistakes
- Running sed -i on a file without testing the change first. Run the same sed command without -i to preview the output, or use sed -i.bak to keep a backup copy of the original file.
- Redirecting output into the same file you are reading from. A command like sort file > file empties the file before sort reads it. Write to a new file, check it, then move it over the original with mv.
- Using uniq -c without sorting the lines first. uniq only merges matching lines that sit next to each other, so the counts come out wrong. Always run sort first, as in sort | uniq -c.
You're ready to move on when you can
- Count how many lines in a log contain "error", ignoring case
- Replace a word in every line of a file with sed
- Print one column from command output with awk
- Build a "top 10" list with sort, uniq and head
Step 5: Users, packages and processes
Running a server means adding users, installing software and keeping services alive. These are the everyday admin tasks you will repeat on every VM and container host.
Time: 2 weeks. Skip if you can create users and groups, install and remove packages with apt, find and stop a process, and manage a service with systemctl.
Topics
- Users & groups
- Every person and service on Linux runs as a user, and groups let you give the same access to many users at once. Learn useradd or adduser, passwd, usermod -aG and the files /etc/passwd and /etc/group. Ubuntu Server: User management useradd(8) manual page Course: Linux Server Course - System Configuration and Operation (Manage Users and Groups) Video: Linux Crash Course - Managing Users
- sudo & root
- root is the all-powerful admin user. sudo lets a normal user run one command as root, and it logs who did what. Work as a normal user and use sudo only when needed, so a typo cannot wreck the whole system. sudo manual sudoers manual Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (sudo) Video: sudo = POWER!! (managing users in Linux) // Linux for Hackers // EP4
- Environment variables
- Environment variables are named values, like PATH or HOME, that programs read when they start. PATH tells the shell where to look for commands. Apps and containers are often configured this way, so learn export, env and your ~/.bashrc file. Bash manual: Environment environ(7) manual page Video: What are Environment Variables, and how do I use them? (get,set)
- apt
- apt is the package manager on Ubuntu and Debian. It downloads software from trusted repositories and handles anything it depends on: apt update refreshes the list, apt install adds a package and apt upgrade updates everything. To add a third-party repository, save its key in /etc/apt/keyrings and point to it with signed-by; the old apt-key command is deprecated. Ubuntu Server: Package management Debian: APT package manager Course: Linux Operating System - Crash Course for Beginners (Linux Package Manager) Video: Linux Crash Course - The apt Command
- Processes
- Every running program is a process with a number called a PID. ps lists processes and top shows live CPU and memory use. When a server is slow, this is where you start looking. ps(1) manual page top(1) manual page Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (ps) Video: Linux Crash Course - The ps Command
- Signals & kill
- kill sends a signal to a process. SIGTERM politely asks it to stop, and SIGKILL (kill -9) forces it, which can lose unsaved data. Try the polite way first. kill(1) manual page signal(7) manual page Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (kill) Video: KILL Linux processes!! (also manage them) // Linux for Hackers // EP 7
- systemd services
- systemd starts and watches background programs called services, such as a web server. systemctl start, stop, restart, status and enable control them, and enable makes a service start again after a reboot. systemctl(1) manual page systemd.service(5) manual page Course: Linux Server Course - System Configuration and Operation (Manage Local Services) Video: Linux Crash Course - systemd: Using the systemctl command
- dnf (alternative)
- dnf is the package manager on Fedora, RHEL, Rocky Linux and AlmaLinux. It does the same job as apt with slightly different commands, like dnf install and dnf upgrade. An alternative to apt; pick one based on your distro. DNF documentation Fedora Quick Docs: Using DNF Course: Linux Server Course - System Configuration and Operation (Install, Update, and Configure Software) Video: Linux Crash Course - The dnf Command
- Snap (optional)
- Snap is Ubuntu's newer package format. Each snap carries its own dependencies and updates itself. Some tools are shipped this way, so know snap install and snap list. Snap documentation Video: Linux Packaging Formats explained: Flatpak vs Snaps vs DEB & RPM vs AppImage vs AUR
- Flatpak (optional)
- Flatpak is a way to install desktop apps that work on any distro and run in a sandbox. It matters more on desktops than on servers, so learn it only if you use Linux day to day. Flatpak documentation Video: Linux Packaging Formats: Deb, RPM, Flatpak, Snap & AppImage
- htop (optional)
- htop is a friendlier, colourful version of top. You can scroll, sort by CPU or memory and kill a process with a key press. Install it with apt install htop. htop home page Video: Linux Crash Course - htop
Project: Run a web server as a service
Install nginx with apt, create a deploy user that can restart it with sudo, and edit the default page. Kill the nginx process and check whether systemd brings it back, then make it start on boot. Document the commands and what you saw.
Common mistakes
- Running usermod -G without -a when adding a group. Always use usermod -aG. Without -a the user is removed from every other extra group, which can take away sudo access. Log out and back in for the change to apply.
- Reaching for kill -9 as the first way to stop a process. Send a normal kill (SIGTERM) first and give the program a few seconds to clean up. For services, use systemctl stop or restart so systemd stays in control.
- Starting a service but forgetting to enable it at boot. Use systemctl enable --now so the service starts now and after every reboot. Check with systemctl is-enabled.
You're ready to move on when you can
- Add a user to a group and check it with id
- Install, update and remove a package with apt
- Find the process using the most memory and stop it safely
- Restart a service and read its status with systemctl
Step 6: Networking and SSH
Cloud servers are only useful over the network, and you reach them through SSH. Knowing a few network commands lets you answer "is it DNS, the firewall or the app?" in minutes.
Time: 2 weeks. Skip if you can find a machine's IP, check which ports are listening, test a URL with curl, look up DNS with dig and log in to a server with SSH keys.
Topics
- IP addresses & ports
- An IP address identifies a machine on a network, and a port number (like 22 for SSH or 443 for HTTPS) identifies a service on that machine. Every connection needs both, so this is the base for all network troubleshooting. MDN Glossary: IP address MDN Glossary: Port Course: Linux Server Course - System Configuration and Operation (Configure and Verify Network Connections) Video: IP Addresses Explained: Networking Basics
- ip command
- ip a shows your network interfaces and IP addresses, and ip r shows routes, including the default gateway. It replaced the old ifconfig and route commands on modern Linux. ip(8) manual page ip-address(8) manual page Course: Linux Server Course - System Configuration and Operation (Configure and Verify Network Connections) Video: How to Use the ip Command in Linux: A Beginner’s Guide
- ping
- ping sends small test packets to a host and shows if it answers and how long it takes. It is the first check for "can I reach that machine at all?". Note that some cloud firewalls block ping on purpose. ping(8) manual page Course: Linux Server Course - System Configuration and Operation (Configure and Verify Network Connections) Video: PING Command - Troubleshooting Networks
- ss
- ss lists network connections and the ports programs are listening on. sudo ss -tlnp answers "is my app actually listening on port 80, and which process owns it?" (without sudo you cannot see other users' processes). It replaced the older netstat. ss(8) manual page Course: Linux Server Course - System Configuration and Operation (Configure and Verify Network Connections) Video: How to Use the ss Command (Linux Crash Course Series)
- curl
- curl sends web requests from the terminal and shows the response. Use curl -I to see headers and status codes, or curl -v to watch the whole conversation. It is the main tool for testing APIs and health checks. curl manual Everything curl (free book) Video: You NEED to know how to use CURL!
- dig & DNS
- DNS (Domain Name System) turns names like example.com into IP addresses. dig shows exactly what DNS returns, which helps when a site "works for me but not for them" or a new domain is not live yet. BIND 9 docs: dig MDN Glossary: DNS Course: Linux Server Course - System Configuration and Operation (Configure and Verify Network Connections) Video: How to Use the dig Command in Linux | DNS Lookup Tutorial
- SSH
- SSH (Secure Shell) gives you an encrypted terminal on a remote machine: ssh user@server. It is how you reach every cloud VM, and Git and many deploy tools use it too. OpenSSH manual pages ssh(1) manual (OpenBSD) Video: Learn SSH In 6 Minutes - Beginners Guide to SSH Tutorial
- SSH keys
- An SSH key pair has a private key you keep secret and a public key you copy to servers. Logging in with keys is safer than passwords and needed for most cloud servers. Learn ssh-keygen, ssh-copy-id and the ~/.ssh/config file. ssh-keygen(1) manual (OpenBSD) ssh_config(5) manual (OpenBSD) Video: Getting Started with OpenSSH Key Management
- scp & rsync
- scp copies files to or from a server over SSH. rsync does the same but only sends what changed, so it is faster for big folders and backups. Both use your SSH login. scp(1) manual (OpenBSD) rsync manual page Video: a brief guide to rsync My short: Your Backup Is Useless Until You Test This
- wget (optional)
- wget downloads files from the web and can resume big downloads or fetch many files at once. It is simpler than curl for plain downloads but cannot test APIs as well. Learn curl first; wget is nice to have. GNU Wget manual Video: Linux Crash Course - The wget Command
- /etc/hosts (optional)
- /etc/hosts is a small file that maps names to IP addresses before DNS is asked. It is handy for testing a new server before changing real DNS, and it explains odd "wrong server" problems. hosts(5) manual page resolv.conf(5) manual page Course: Linux Server Course - System Configuration and Operation (Configure and Verify Network Connections) Video: The Hosts File Explained
Project: Connectivity checklist
Make a second VM (or a free cloud VM, for example AWS Free plan credits or Oracle Cloud Always Free) and log in to it from your first one with SSH keys only. Then write a one-page troubleshooting checklist that uses ping, dig, ss and curl to find out why a web page will not load, and test it by breaking things on purpose.
Common mistakes
- Assuming an app is reachable without checking which address it listens on. Run sudo ss -tlnp (without sudo you cannot see which process owns each port). If the app shows 127.0.0.1:8080, only the server itself can reach it, so bind it to 0.0.0.0 or put a reverse proxy in front and check the cloud firewall.
- Leaving loose permissions on the .ssh folder or private key. SSH refuses keys that other users can read. Run chmod 700 ~/.ssh and chmod 600 on your private key and on authorized_keys.
- Treating a failed ping as proof that a server is down. Many cloud firewalls block ping on purpose. Test the real service port instead, with curl or nc -zv host 443.
You're ready to move on when you can
- Find your IP address and default gateway
- Show which process is listening on port 22
- Log in to a server with a key instead of a password
- Copy a folder to a server with rsync
Step 7: Bash scripting and scheduling
Scripts turn commands you type often into tools that run the same way every time. CI pipelines, container start-up files and cloud boot scripts are mostly Bash, so this is where Linux becomes automation.
Time: 2–3 weeks. Skip if you can write a Bash script with arguments, if statements, loops and functions that exits with the right code, and run it on a schedule.
Topics
- Your first script
- A script is a text file of commands. Start it with #!/bin/bash (the shebang line), make it runnable with chmod +x, and run it with ./script.sh. Adding set -euo pipefail makes it stop on errors instead of carrying on. Bash manual: Shell scripts Bash manual: The set builtin Course: Bash Scripting Tutorial for Beginners (Writing your first bash script) Video: you need to learn BASH Scripting RIGHT NOW!! // EP 1
- Variables & arguments
- Variables store values (name="Ali", then use $name). Arguments passed to a script arrive as $1, $2 and so on. Always wrap variables in double quotes, like "$name", so spaces do not break your script. Bash manual: Shell parameters Bash manual: Positional parameters Course: Bash Scripting Tutorial for Beginners (Variables) Video: How To Write Bash Scripts In Linux - Complete Guide (Part 3 - Variables)
- Conditionals
- if and case let a script make decisions, such as "if the file exists, back it up". Tests go inside [[ ]], for example [[ -f file ]] or [[ $count -gt 5 ]]. Bash manual: Conditional constructs Bash manual: Conditional expressions Course: Bash Scripting Tutorial for Beginners (Test operators) Video: How To Write Bash Scripts In Linux - Complete Guide (Part 5 - If Statements)
- Loops
- for loops repeat commands over a list, like every file in a folder or every server name. while loops repeat until a condition changes, such as reading a file line by line. Bash manual: Looping constructs Course: Bash Scripting Tutorial for Beginners (For loop) Video: How To Write Bash Scripts In Linux - Complete Guide (Part 9 - For Loops)
- Functions
- A function is a named block of commands you can call many times, which keeps long scripts tidy. Inside a function, use local variables so they do not clash with the rest of the script. Bash manual: Shell functions Course: Bash Scripting Tutorial for Beginners (Functions) Video: How To Write Bash Scripts In Linux - Complete Guide (Part 12 - Functions)
- Exit codes
- Every command ends with an exit code: 0 means success and anything else means failure. $? holds the last one, and && or || run the next command only on success or failure. CI pipelines pass or fail based on these codes. Bash manual: Exit status Bash manual: Lists of commands Course: Bash Scripting Tutorial for Beginners (Exit codes) Video: How To Write Bash Scripts In Linux - Complete Guide (Part 6 - Exit Codes)
- cron
- cron runs commands on a schedule, such as every night at 2 a.m. You edit your schedule with crontab -e, where five fields set the minute, hour, day, month and weekday. It is the classic way to run backups and cleanups. crontab(5) manual page crontab(1) manual page Course: Linux Server Course - System Configuration and Operation (Automate and Schedule Jobs) Video: Cron Jobs For Beginners | Linux Task Scheduling
- systemd timers (alternative)
- systemd timers are the modern way to schedule jobs. They log every run to the journal and can catch up on runs missed while the machine was off. An alternative to cron; pick one. systemd.timer(5) manual page systemd.time(7): calendar syntax Video: Automate Your Tasks with systemd Timers: A Step-by-Step Guide
- ShellCheck (optional)
- ShellCheck reads your script and points out bugs and risky habits, like missing quotes, before you run it. Use it in your editor or paste scripts into shellcheck.net. ShellCheck ShellCheck wiki Video: Linting Your Bash Scripts with Shellcheck
- Python for scripting (optional)
- When a Bash script grows past about 100 lines or needs to handle JSON or APIs, Python is usually easier to read and test. Most Linux systems already have it installed. The Python Tutorial Python docs: subprocess Video: Automate your job with Python
Project: Automated backup script
Write a Bash script that takes a folder as an argument, makes a dated .tar.gz backup, keeps only the last 7 and exits with an error code if anything fails. Pass ShellCheck with no warnings, schedule it with cron or a systemd timer, then restore one backup to prove it works.
Common mistakes
- Leaving variables unquoted in scripts, like $file instead of "$file". Wrap every variable in double quotes so file names with spaces stay in one piece. Add set -u too, so an unset variable stops the script instead of turning rm -rf $dir/* into rm -rf /*.
- Writing cron jobs that work in the terminal but fail silently. cron runs with a very short PATH and none of your shell settings. Use full paths to commands and files, and send output to a log file with >> /path/log 2>&1.
- Ignoring exit codes so failed steps look successful. Add set -euo pipefail and end with exit 1 when something goes wrong. CI tools and schedulers only know a script failed from a non-zero exit code.
You're ready to move on when you can
- Write a script that refuses to run without the right arguments
- Loop over files in a folder and act on each one
- Explain what set -euo pipefail does
- Schedule a script and confirm it ran
Step 8: Logs, disks and security
A real server needs watching: logs tell you what went wrong, disks fill up, and anything on the internet gets attacked within minutes. This step turns your VM into something you could safely run in the cloud.
Time: 2 weeks. Skip if you can find a service's errors with journalctl, fix a full disk, mount a new disk, and lock down a server with ufw, SSH keys and automatic updates.
Topics
- journalctl
- journalctl reads the systemd journal, where services write their logs. journalctl -u nginx shows one service, -f follows new lines and --since "1 hour ago" narrows the time. It is usually the first place to look when a service fails. journalctl(1) manual page Video: journalctl Basics: How to Easily Check Your Linux Logs
- Log files
- Many programs still write plain text logs under /var/log, such as auth.log for logins and syslog for general system messages. Combine them with tail -f and grep to watch and search them. Ubuntu tutorial: Viewing and monitoring log files rsyslog documentation Video: Linux Crash Course - Understanding Logging
- Disk usage (df, du)
- df -h shows how full each disk is, and du -sh shows how much space a folder uses. A full disk is one of the most common reasons servers and databases stop working, so check these first. GNU coreutils: df GNU coreutils: du Course: The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners (du) Video: Linux Crash Course - The df and du Commands
- Disks & partitions
- lsblk lists disks and the partitions on them, and tools like fdisk create new partitions. On cloud servers you often attach an extra disk, so you need to find it, partition it and format it with mkfs. lsblk(8) manual page fdisk(8) manual page Course: Linux Server Course - System Configuration and Operation (Manage Storage in a Linux Environment) Video: Creating Partitions In Linux Using fdisk (and other tools)
- Mounting filesystems
- A filesystem (like ext4) is how data is laid out on a disk. Mounting attaches it to a folder in the tree, for example /data. Add it to /etc/fstab so it comes back after a reboot. mount(8) manual page fstab(5) manual page Course: Linux Server Course - System Configuration and Operation (Manage Storage in a Linux Environment) Video: Linux Crash Course - Everything You Need to Know for Formatting and Mounting Disks
- ufw firewall
- ufw (Uncomplicated Firewall) is Ubuntu's simple front end for the Linux firewall. Allow only what you need, such as ufw allow OpenSSH and ufw allow 80, then ufw enable. Always allow SSH before enabling, or you lock yourself out. Ubuntu Server: Firewalls Video: Linux Firewall Tutorial | How to Configure Firewall Rules with UFW
- System updates
- Most break-ins use security holes that already have fixes. Run updates regularly and turn on unattended-upgrades so security patches install automatically on Ubuntu servers. Ubuntu Server: Automatic updates Ubuntu Server: Package management Course: Linux Server Course - System Configuration and Operation (Install, Update, and Configure Software) Video: Ubuntu 24.04: How to Automate Updates with Unattended Upgrades
- SSH hardening
- Bots try to guess SSH passwords on every public server. Use keys only: set PasswordAuthentication no and PermitRootLogin no in /etc/ssh/sshd_config, and check /etc/ssh/sshd_config.d/ too, because files there can override it. Test the config with sudo sshd -t, reload SSH, then log in from a second terminal before you close your current one, so a mistake does not lock you out. Ubuntu Server: OpenSSH server sshd_config(5) manual (OpenBSD) Video: 5 Must Have Tweaks to Secure OpenSSH
- firewalld (alternative)
- firewalld is the firewall tool on Fedora, RHEL and similar distros. It groups rules into zones and uses firewall-cmd instead of ufw. An alternative to ufw; pick the one your distro uses. firewalld documentation Video: Demystifying firewalld
- logrotate (optional)
- logrotate stops log files from filling the disk by renaming, compressing and deleting old logs on a schedule. Most packages set it up for you, but your own apps may need a rule. logrotate(8) manual page (Ubuntu) logrotate project Video: Logrotate - How to Rotate and Compress logs
- LVM (optional)
- LVM (Logical Volume Manager) lets you combine disks and grow a volume later without reformatting. Ubuntu Server can use it by default, so it is worth knowing what lvs and lvextend do. lvm(8) manual page Ubuntu Server: LVM Course: Linux Server Course - System Configuration and Operation (Manage Storage in a Linux Environment) Video: Introduction to LVM | Linux Academy
- Fail2ban (optional)
- Fail2ban watches log files for repeated failed logins and blocks those IP addresses for a while. It adds a useful extra layer on servers that must keep SSH open to the internet. Fail2ban project Video: Fail2ban Tutorial | How to Secure Your Server
Project: Harden a fresh server
Starting from a clean Ubuntu VM, add a sudo user, allow SSH key login only, turn on ufw with just SSH and HTTP open, and enable automatic security updates. Attach a second virtual disk, mount it at /data through fstab, and write a checklist that someone else could follow.
Common mistakes
- Enabling ufw before allowing SSH through it. Run ufw allow OpenSSH first, check it with ufw show added, then run ufw enable. Otherwise the firewall cuts off your own session on a remote server.
- Adding a wrong /etc/fstab line and rebooting without testing it. Use the disk's UUID from blkid, add the nofail option for extra disks, and run sudo mount -a before rebooting. A bad entry can stop the server from booting.
- Deleting large log files while a program still has them open. The space is not freed until the program closes the file, so df stays full. Empty the file with truncate -s 0 instead, and find hidden deleted files with lsof +L1.
You're ready to move on when you can
- Show the last 50 log lines for a failed service
- Find what is filling a disk and free space safely
- Mount a new disk that survives a reboot
- Explain every rule in your firewall
Capstone project: Secure, automated web server
Build one Ubuntu server from scratch that serves a simple website with Nginx. Lock it down with SSH keys, ufw and automatic updates, run a nightly backup script on a timer, and add a health check script that uses curl and logs failures. Write a README with every step so someone else could rebuild it, then rebuild it yourself on a fresh VM to prove it works.
Certifications
- LPI Linux Essentials (010-200): An easy first certificate that checks the basics. Version 2.0 (010-200) is current; 010-160 stays available until April 2027. Optional.
- CompTIA Linux+ (XK0-006): Multiple-choice and hands-on questions on admin, security and scripting. XK0-006 replaced XK0-005 (English retired January 2026). Take it after finishing this roadmap.
- Linux Foundation Certified System Administrator (LFCS): A fully hands-on exam where you fix real systems in a terminal for 2 hours. The best proof of practical skill and good practice for the hands-on Kubernetes exams later.
Frequently asked questions
How long does it take to learn Linux?
About 3–4 months at 8 hours a week to go from zero to running and securing your own server. You can be comfortable in the terminal within 2–3 weeks; the rest is practice on real tasks.
Which Linux distro should a beginner start with?
Ubuntu LTS. It is the most common distro on cloud servers, has the most tutorials, and the skills carry over to Debian, Fedora and RHEL with only small changes like apt versus dnf.
Do I need to install Linux on my laptop?
No. Run it in a free virtual machine with VirtualBox, or use WSL on Windows. Both let you experiment and break things without risking your main system.
Do I need Linux for DevOps and cloud jobs?
Yes. Most cloud servers, containers and CI runners run Linux, and you debug them from a terminal. That is why this is the first roadmap to finish before DevOps, AWS or Kubernetes.
Should I learn Vim or nano?
Start with nano because it is easy and shows its shortcuts on screen. Learn enough Vim to open, edit, save and quit, because it is installed on nearly every server and nano sometimes is not.
Is a Linux certification worth it?
It helps when you have no work experience, because it gives recruiters a clear signal. The hands-on LFCS proves the most, but a GitHub repo of the projects in this roadmap matters just as much in interviews.