# Linux & Bash for DevOps

From your first prompt to debugging a broken server. Each stage builds on the one before it.

Level: Beginner. Free on DevOps Academy: https://devops.rajeev.pro/courses/linux

## Roadmap

1. **Navigation basics**: Find your way around any server without a GUI. Everything else depends on this. [Lesson](https://devops.rajeev.pro/courses/linux/01-shell-and-filesystem)
   Topics: Basic commands; Directory hierarchy; Moving files & folders; Creating & deleting files
2. **Editing files**: Config lives in text files. You need to edit them over SSH, where there is no VS Code. [Lesson](https://devops.rajeev.pro/courses/linux/02-editing-files)
   Topics: nano; vim basics; Search & replace; Save & quit safely
3. **Shell basics**: Know how the shell finds commands, where output goes, and when you are root. [Lesson](https://devops.rajeev.pro/courses/linux/03-shell-basics)
   Topics: Command path ($PATH); Environment variables; man & --help; stdin / stdout / stderr; Redirects; sudo & root
4. **Working with files**: Most "it works on my machine" bugs are really permission or path problems. [Lesson](https://devops.rajeev.pro/courses/linux/04-working-with-files)
   Topics: Permissions (chmod, chown); Copying & renaming; tar & gzip; Soft & hard links
5. **Text processing**: Logs are text. Small tools joined with pipes answer most incident questions in seconds. [Lesson](https://devops.rajeev.pro/courses/linux/05-text-processing)
   Topics: grep; Pipes & tee; head / tail; sort & uniq; cut & tr; wc; awk & sed basics
6. **Server review**: The five-minute health check you run the moment you log into a slow server. [Lesson](https://devops.rajeev.pro/courses/linux/06-server-review)
   Topics: Uptime & load; Memory & disk (free, df, du); Running services; Auth logs
7. **Process management**: Find what is eating the CPU, stop it cleanly, and keep jobs running after you log out. [Lesson](https://devops.rajeev.pro/courses/linux/07-process-management)
   Topics: ps, top & pgrep; Background & foreground jobs; Signals & kill; Priorities (nice); Forking
8. **Users & groups**: Every service should run as its own user. This is the first layer of security. [Lesson](https://devops.rajeev.pro/courses/linux/08-users-groups)
   Topics: Create, update, delete users; Groups; sudoers; File ownership
9. **Services with systemd**: How real apps run on servers: start on boot, restart on crash, logs in one place. [Lesson](https://devops.rajeev.pro/courses/linux/09-services-with-systemd)
   Topics: systemctl status; Start, stop, enable; journalctl logs; Writing a unit file
10. **Package management**: Install, pin and upgrade software the same way on every server. [Lesson](https://devops.rajeev.pro/courses/linux/10-package-management)
   Topics: apt & dnf; Repositories; Install, remove, upgrade; Listing installed packages; snap
11. **Disks & filesystems**: "Disk full" is one of the most common outages. Learn to find space and add more. [Lesson](https://devops.rajeev.pro/courses/linux/11-disks-filesystems)
   Topics: Filesystems & inodes; Mounts & fstab; Adding disks; LVM; Swap
12. **Booting Linux**: When a server will not come back after a reboot, this is where you look. [Lesson](https://devops.rajeev.pro/courses/linux/12-booting-linux)
   Topics: Boot loaders (GRUB); Boot logs; systemd targets
13. **Networking**: Half of DevOps debugging is "can A talk to B?". These are the building blocks. [Lesson](https://devops.rajeev.pro/courses/linux/13-networking)
   Topics: TCP/IP; Subnets & CIDR; DNS resolution; IP routing; DHCP; SSH & keys; scp & rsync
14. **Shell scripting**: Turn the commands you repeat into scripts that run the same way every time. [Lesson](https://devops.rajeev.pro/courses/linux/14-shell-scripting)
   Topics: Variables; Conditionals; Loops; Functions & exit codes; Debugging (set -x)
15. **Troubleshooting**: A calm, repeatable way to find out why the network or a service is broken. [Lesson](https://devops.rajeev.pro/courses/linux/15-troubleshooting)
   Topics: ping & ICMP; traceroute; ss / netstat; tcpdump; Firewalls (nftables)
16. **Containers on Linux**: Containers are just Linux features. This stage is the bridge to the Docker course. [Lesson](https://devops.rajeev.pro/courses/linux/16-containers-on-linux)
   Topics: Namespaces; cgroups; ulimits; Container runtimes; Docker
