Leanpub Header

Skip to main content

The Complete Linux Guide

From Absolute Beginner to Advanced Practitioner — A Complete Step-by-Step Guide

This book is 100% completeLast updated on 2026-07-30

Learn Linux with a practical, step-by-step guide that takes you from beginner to advanced user. Build real skills through hands-on examples and gain the confidence to use Linux in professional and everyday environments.

Minimum price

$19.00

$29.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
WEB
APP
222
Pages
About

About

About the Book

Linux is the operating system that powers the internet, supercomputers, smartphones, and most of the modern computing world. Whether you are a complete novice who has never opened a terminal, a developer looking to understand the platform your code runs on, a system administrator seeking deeper expertise, or a DevOps engineer mastering infrastructure automation, this book meets you where you are and takes you further. Through 14 progressive chapters, you will build practical skills from the ground up: installing Linux, navigating the command line, writing scripts, managing systems, securing servers, deploying containers, tuning performance, and troubleshooting failures. Every concept is explained clearly with real commands, real output, and real-world scenarios. By the final page, you will not just know Linux. You will use it confidently.

Bundle

Bundles that include this book

Author

About the Author

Steve Publications

Steve is a technology professional with more than 20 years of experience in software development, server infrastructure, cybersecurity, vulnerability research and reverse engineering. Throughout his career, he has designed, secured, analyzed and tested complex software and infrastructure, with a particular focus on understanding how systems fail and how they can be made more secure.

Outside of work, Steve enjoys sharing knowledge with the technology community. He collaborates with researchers, industry experts and technology professionals to write practical books covering software development, cybersecurity, cloud computing, networking, DevOps, artificial intelligence and enterprise technologies. His books focus on practical learning through clear explanations, real-world examples and hands-on exercises. With more than two decades of industry experience, his goal is to help IT professionals, students and technology enthusiasts build useful skills and stay current in a rapidly changing industry.

We believe readers deserve to know how our books are created. Most of our authors are not native English speakers, so we use AI to help translate, proofread manuscripts, fix grammar, improve sentence structure and make technical explanations easier to read. AI is used as an editing tool only. It does not replace the research, technical knowledge or hands-on experience behind our books. Some of our authors also prefer to remain anonymous for privacy or professional reasons. In those cases, we publish their work under a different name. The author's name may be different, but the quality of the content and our review process remain the same.

Every book is written, reviewed and maintained by experienced technology professionals, with contributions from our private technical community of more than 420 engineers and researchers. We spend far more time validating technical accuracy and keeping our content up to date than generating text. We are always interested in working with experienced professionals who have deep expertise in a particular technology or domain. If you would like to publish a book with us or help review an existing manuscript, we'd love to hear from you. Send us a message describing your area of expertise. We are especially interested in niche technologies, specialized skills and emerging topics that are underrepresented in existing technical literature.

If you look through the contents of our books, you'll see practical examples, detailed explanations and material that is regularly updated. Our goal is to publish books that professionals can actually rely on, not low-effort AI-generated content. If you ever feel that one of our books does not meet that standard, Leanpub offers a 60-day money-back guarantee. Feel free to request a refund if you are not satisfied with your purchase.

Contents

Table of Contents

From Absolute Beginner to Advanced Practitioner: A Complete Step-by-Step Guide

Introduction: Why Linux Matters

  1. What This Book Will Teach You
  2. How to Use This Book
  3. Prerequisites
  4. The Linux Philosophy

Chapter 1: Foundations — What Is Linux, Really?

  1. The Kernel at the Core
  2. Distributions and Families
  3. Open Source Philosophy and Community
  4. Where Linux Runs Today
  5. Your First Decision: Choosing a Distribution
  6. Chapter Summary
  7. Exercises

Chapter 2: Installing Linux — From USB to Boot

  1. Preparing Your Installation Media
  2. BIOS, UEFI, and the Boot Process
  3. Installing on Bare Metal
  4. Virtual Machines and Containers as Learning Environments
  5. Post-Installation First Steps
  6. Chapter Summary
  7. Exercises

Chapter 3: The Command Line — Your New Superpower

  1. Opening the Terminal and Understanding the Prompt
  2. Navigating the File System with Confidence
  3. Creating, Reading, Writing, and Deleting Files
  4. Pipes, Redirection, and Chaining Commands
  5. Essential Text Processing Tools
  6. Building Muscle Memory Through Practice
  7. Chapter Summary
  8. Exercises

Chapter 4: The Linux File System — Organization at Scale

  1. The Hierarchical File System Standard
  2. Understanding Special Directories
  3. Files, Directories, and Everything in Between
  4. Permissions, Ownership, and the chmod/chown Family
  5. Symbolic Links, Hard Links, and Mount Points
  6. Disk Usage, Quotas, and Filesystem Types
  7. Chapter Summary
  8. Exercises

Chapter 5: Users, Groups, and Authentication

  1. User Accounts and the /etc/passwd System
  2. Groups and Group-Based Permissions
  3. sudo and Privilege Escalation
  4. Architectural Trade-offs: Privilege Escalation Alternatives
  5. PAM: Pluggable Authentication Modules
  6. SSH Keys and Remote Authentication
  7. Access Control Lists and Mandatory Access Control
  8. Chapter Summary
  9. Exercises

Chapter 6: Shell Scripting — Automating the Mundane

  1. Your First Script and the Shebang Line
  2. Variables, Parameters, and Environment
  3. Conditionals, Loops, and Control Flow
  4. Functions, Arguments, and Modular Scripts
  5. Error Handling, Logging, and Defensive Programming
  6. Real-World Automation Recipes
  7. Chapter Summary
  8. Exercises

Chapter 7: Package Management — Software at Your Fingertips

  1. How Package Managers Work
  2. Debian and Ubuntu: APT and dpkg

List all installed packages (low-level query)

Find which package owns a specific file on the system

  1. RHEL, Fedora, CentOS: DNF and YUM
  2. Arch Linux and the Pacman Ecosystem
  3. Universal Packaging: Snap, Flatpak, and AppImage
  4. Architectural Trade-offs: Release Models and Package Philosophies
  5. Compiling Software from Source
  6. Chapter Summary
  7. Exercises

Chapter 8: System Administration — Keeping Systems Running

  1. Processes, Signals, and Process Management
  2. systemd: Services, Targets, and Timers
  3. Architectural Trade-offs: systemd and Its Alternatives
  4. Logging with journalctl and Log Files
  5. Scheduled Tasks with cron, at, and systemd Timers
  6. Disk Management, Partitioning, and LVM
  7. Backups, Monitoring, and System Health
  8. Chapter Summary
  9. Exercises

Chapter 9: Networking — Connecting Linux to the World

  1. Network Configuration Interfaces
  2. IP Addressing, Routing, and Subnets
  3. DNS Resolution and Configuration
  4. Firewalls with iptables, nftables, and firewalld
  5. SSH, SCP, and Secure Remote Access
  6. Network Troubleshooting Toolkit
  7. Chapter Summary
  8. Exercises

Chapter 10: Security — Hardening Your Linux Systems

  1. The Linux Security Model
  2. Hardening Checklist: From Baseline to Fortress
  3. Encryption: Disks, Files, and Communications
  4. Intrusion Detection and Log Analysis
  5. SELinux and AppArmor: Mandatory Access Control
  6. Case Study: Containing a Web Server Compromise
  7. Chapter Summary
  8. Exercises

Chapter 11: Development Tools — Building Software on Linux

  1. Compilers, Interpreters, and Runtime Environments
  2. Build Systems: Make, CMake, and Modern Alternatives
  3. Version Control with Git on Linux
  4. Debugging and Profiling Tools
  5. IDEs, Editors, and Terminal Productivity
  6. Continuous Integration and Deployment Pipelines
  7. Chapter Summary
  8. Exercises

Chapter 12: Containers and Virtualization — The Modern Infrastructure

  1. Virtualization Fundamentals: KVM, QEMU, and libvirt
  2. Container Technology: Docker, Podman, and OCI
  3. Architectural Trade-offs: Container Isolation Models
  4. Orchestration Concepts: Kubernetes and Beyond
  5. How Kubernetes Works: The Control Loop Explained
  6. Deployments, ReplicaSets, and the Rolling Update Mechanism
  7. How Services Route Traffic to Pods
  8. Infrastructure as Code with Ansible and Terraform
  9. Chapter Summary
  10. Exercises

Chapter 13: Performance Tuning — Making Linux Fly

  1. Measuring Performance: Tools and Metrics
  2. CPU Scheduling and Optimization
  3. Memory Management, Swapping, and Caching
  4. I/O Subsystem Tuning
  5. Network Performance Optimization
  6. Real-World Tuning Case Studies
  7. Chapter Summary
  8. Exercises

Chapter 14: Troubleshooting — When Things Go Wrong

  1. A Systematic Troubleshooting Methodology
  2. Boot Problems and Recovery Modes
  3. Kernel Panics and Crash Analysis
  4. Filesystem Corruption and Repair
  5. Network Troubleshooting Deep Dive
  6. Case Study: Diagnosing an Intermittent Application Outage
  7. Chapter Summary
  8. Exercises

Conclusion: Your Linux Journey Forward

What You Have Built

The Learning Path Does Not End Here

Where Linux Is Headed

Your Next Steps

A Final Thought

References

Index

Commands and Tools

Concepts

Filesystem Paths

Distributions Mentioned

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub