Linux in 6 Months¶
A 26-week plan for .NET developers: from daily WSL2 use to running, automating and monitoring production servers.
How to use this plan¶
- Time budget: about 6-8 hours per week, for example four evenings of one hour plus one longer weekend session. Missing a week is fine; shift everything and keep going.
- Learn by doing real work. Every week ends with a deliverable you can show. If you can only read about it, you have not finished the week.
- Keep one repo (notes, scripts, Dockerfiles, playbooks). It becomes your portfolio and your cheat sheet: cheatsheet.md.
- Do it by hand first, then automate. Phases 3-4 are manual on purpose; Ansible in Phase 7 makes the same work repeatable.
- Setup: WSL2 with Ubuntu LTS on your Windows machine, plus one small VPS or VM (a few euros per month) that you are allowed to break.
A realistic expectation¶
Six months of steady work makes you a strong, confident practitioner: you can own Linux servers, containers and build agents in your own projects and at work. True expert level comes from years of production incidents, so the capstone and the post-mortems matter most; they compress that experience as far as practice can.
Overview¶
| Phase | Focus | Weeks | What you get |
|---|---|---|---|
| 1 | Shell fluency | 1-4 | Live in WSL2 daily; pipes, text tools, SSH, vim/tmux. |
| 2 | Linux fundamentals | 5-8 | Permissions, processes, systemd, packages, storage. |
| 3 | Run a real server | 9-12 | VPS from scratch: hardening, Blazor on Kestrel, nginx, TLS, break and fix. |
| 4 | Networking, Bash, troubleshooting | 13-16 | ss/tcpdump/dig, tunnels, solid scripts, a debugging method. |
| 5 | Containers | 17-20 | Dockerfiles for .NET, compose, hardening, registries. |
| 6 | CI/CD on Linux | 21-22 | Self-hosted Azure DevOps agent, pipeline to production. |
| 7 | Automation, monitoring, capstone | 23-26 | Ansible, Prometheus/Grafana, full rebuild from zero. |
Weekly plan¶
Phase 1: Shell fluency¶
Weeks 1-4. Live in WSL2 daily; pipes, text tools, SSH, vim/tmux.
- Week 1 - WSL2 as your daily driver: Make Linux the place where your normal dev work happens.
- Week 2 - Filesystem and files: Move around confidently and know where things live.
- Week 3 - Pipes and text tools: Use the shell as a data-processing tool.
- Week 4 - Editors, tmux and SSH basics: Be productive on a remote machine with nothing but a terminal.
Phase 2: Linux fundamentals¶
Weeks 5-8. Permissions, processes, systemd, packages, storage.
- Week 5 - Users, groups and permissions: Understand who may do what, and why 'permission denied' happens.
- Week 6 - Processes and signals: See what is running, how it is limited, and how to stop it cleanly.
- Week 7 - systemd and journald: Run and supervise services the standard way.
- Week 8 - Packages and storage: Install software properly and understand disks.
Phase 3: Run a real server¶
Weeks 9-12. VPS from scratch: hardening, Blazor on Kestrel, nginx, TLS, break and fix.
- Week 9 - Provision and harden a VPS: Get a clean internet-facing server you fully control.
- Week 10 - Deploy a Blazor app with Kestrel and systemd: Run a real .NET app as a proper Linux service.
- Week 11 - nginx reverse proxy and TLS: Put the app behind nginx with HTTPS.
- Week 12 - Break it on purpose: Learn to diagnose problems from evidence, not guesswork.
Phase 4: Networking, Bash, troubleshooting¶
Weeks 13-16. ss/tcpdump/dig, tunnels, solid scripts, a debugging method.
- Week 13 - Networking fundamentals: Understand what happens between client and server.
- Week 14 - Firewalls and SSH in depth: Control access and move traffic safely.
- Week 15 - Bash scripting I: Write scripts you can trust.
- Week 16 - Bash II and a troubleshooting method: Have a repeatable way to find out what is wrong.
Phase 5: Containers¶
Weeks 17-20. Dockerfiles for .NET, compose, hardening, registries.
- Week 17 - Docker fundamentals: Understand images, containers and what runs underneath.
- Week 18 - Dockerfiles for .NET: Build small, fast and safe images for your apps.
- Week 19 - docker compose: Run a multi-container stack the same way everywhere.
- Week 20 - Containers deeper: Production habits for container workloads.
Phase 6: CI/CD on Linux¶
Weeks 21-22. Self-hosted Azure DevOps agent, pipeline to production.
- Week 21 - Azure DevOps agent on Linux: Own a Linux build agent.
- Week 22 - Pipeline to production: Commit to production, automated.
Phase 7: Automation, monitoring, capstone¶
Weeks 23-26. Ansible, Prometheus/Grafana, full rebuild from zero.
- Week 23 - Ansible I: Make server setup repeatable.
- Week 24 - Ansible II: Structure automation like a professional.
- Week 25 - Monitoring and upkeep: Know about problems before users do.
- Week 26 - Capstone and review: Prove the whole chain works from nothing.
Final self-check: what I can do after 26 weeks¶
- Work in a Linux shell all day and write one-liners with grep, sed, awk and pipes.
- Explain users, groups, permissions, sudo and fix 'permission denied' quickly.
- Write and debug systemd units and read journald logs fluently.
- Harden a fresh Ubuntu server (SSH keys, ufw, fail2ban, updates) from memory.
- Deploy a .NET app behind nginx with TLS, and operate it for weeks without drama.
- Diagnose CPU, memory, disk and network problems with standard tools.
- Explain TCP/IP, DNS, ports and firewalls and use ss, dig, curl and tcpdump.
- Write safe Bash scripts (set -euo pipefail, quoting, traps) and check them with shellcheck.
- Write small, non-root multi-stage Dockerfiles and run stacks with compose.
- Run a Linux Azure DevOps agent and a pipeline that deploys to a Linux server.
- Provision and configure servers with Ansible roles and Vault.
- Monitor a service with Prometheus and Grafana, alert on problems, and restore from backup.
Lint Markdown before pushing¶
The repo has a pre-push hook in .githooks/ that runs markdownlint on the same files as the CI check. Git does not use it automatically; enable it once per clone (requires Node.js):
git config core.hooksPath .githooks
To run the check by hand: .githooks/pre-push.
Resources¶
- The Linux Command Line by William Shotts (free online) - for Phases 1-2.
- OverTheWire: Bandit - shell skills through puzzles (Phase 1).
- Linux Journey (linuxjourney.com) - short lessons by topic.
- Microsoft docs: Host ASP.NET Core on Linux with Nginx - Phase 3 almost step by step.
- Docker: Get started, then the .NET container docs - Phase 5.
- Ansible documentation and the 'Ansible for DevOps' book by Jeff Geerling - Phase 7.
- ShellCheck (shellcheck.net), explainshell.com, man pages and tldr for fast help.
- Optional certification later: LFCS (Linux Foundation Certified System Administrator).
Where to go next: Kubernetes (k3s is a light entry), deeper Ansible and Terraform, the LFCS certification, or applying the skills to production work and on-call duties.