Linux System Administration 1 (LPI 101)

Table of Contents:
  1. Introduction to Linux System Administration
  2. Software Installation and Package Management
  3. Advanced Text Manipulation Using sed and grep
  4. Compiling and Building Software from Source
  5. Managing Libraries and Dependencies
  6. Understanding Regular Expressions
  7. Using the RedHat Package Manager (RPM)
  8. Exercises and Practical Applications
  9. Glossary of Key Linux Terms

Overview

This hands-on, lab-driven course introduces practical skills for confident Linux system administration and foundational LPI 101 preparation. Emphasizing command-line fluency, disciplined package and dependency management, effective text-processing, safe source-build practices, and methodical troubleshooting, the guide focuses on reproducible procedures and short, annotated examples you can run immediately in virtual machines or containers. It helps you convert one-off commands into repeatable operational habits that reduce risk in production environments.

Core learning outcomes

  • Command-line mastery: build fluency with shells, pipelines, redirection, regular expressions, and utilities such as grep, sed, awk, and xargs to automate common administrative tasks.
  • Package strategy and verification: learn when to use distribution packages versus building from source, how to verify package integrity, and how to manage upgrades and rollbacks safely.
  • RPM inspection and troubleshooting: use RPM tooling to examine package metadata, trace dependency graphs, validate signatures, and perform controlled installs and removals.
  • Libraries and runtime linking: distinguish static and shared libraries, understand dynamic linker behavior, manage ldconfig caches, and diagnose common linkage errors at runtime.
  • Build automation with Makefiles: author and debug Makefile targets, leverage variables and pattern rules, and structure builds for multi-file and modular projects.
  • Reproducible troubleshooting: adopt systematic diagnostics for missing dependencies, linker failures, install-path conflicts, and validate fixes with repeatable checks and logs.

Course focus and teaching approach

Lessons prioritize clear, example-driven explanations over abstract theory. Each topic uses annotated command sequences that highlight correct usage, common pitfalls, and measurable checks so you can confirm outcomes. Text-processing chapters present practical grep and sed patterns for log analysis, configuration updates, and batch edits. Build sections walk through compilation stages, privilege separation (building as non-privileged users), and risk mitigation when deploying software compiled from source. The approach is practical: short labs, concise verification steps, and diagnostic heuristics you can apply immediately.

Hands-on labs and practical projects

Labs simulate realistic faults and demand diagnostic thinking: reproduce issues, apply fixes, and document remediation. Typical exercises include compiling a small open-source tool, creating and testing Makefiles for multi-file builds, scripting batch edits with sed, and using RPM commands to inspect, verify, and roll back packages. Each exercise pairs objectives with validation checks so you can demonstrate mastery and develop a reusable troubleshooting log useful in real operations.

Who should use this guide

Designed for early-career IT professionals, administrators migrating from other platforms, and developers seeking stronger operational skills. It supports candidates preparing for LPI 101 as well as practitioners who want repeatable, hands-on techniques for daily system administration. Examples progress from guided steps to open-ended challenges suitable for self-study, classroom instruction, or mentor-led workshops.

Study tips and best practices

  • Run exercises in isolated VMs or containers to test safely and revert quickly.
  • Follow examples exactly once, then modify commands to explore alternatives and deepen understanding.
  • Keep a troubleshooting log of errors, commands, and fixes to accelerate future debugging and knowledge sharing.
  • Practice regular expressions across different file formats to strengthen pattern recognition and search strategies.
  • Contrast package-managed installs with source builds to evaluate reproducibility, maintainability, and security trade-offs in your environment.

Quick FAQ

When should I build from source? Build from source when you need custom compile-time options, features not available in distribution packages, or precise control over installation paths—while accounting for the additional maintenance overhead of non-packaged installs.

How do sed and grep differ? grep locates and prints matching lines; sed performs scripted, in-stream edits (substitutions, deletions, insertions) for automated transformations and can be combined with other tools in pipelines.

Why learn RPM workflows? RPM tools provide robust package inspection, dependency diagnosis, and integrity checks that make upgrades, rollbacks, and audits safer and more transparent.

Conclusion

This lab-centric guide ties together command-line techniques, package and library management, and source-build workflows into practical routines you can adopt immediately. Use the exercises, validation checks, and troubleshooting patterns to convert short examples into repeatable skills that support everyday administration tasks and foundational certification study.


Author
LinuxIT Technical Training Centre
Downloads
3,054
Pages
180
Size
1.64 MB

Safe & secure download • No registration required