Python Quick Start for Linux System Administrators

Visit Tutorial Page ( Report)
System administrators invariably write scripts to help automate the work they do, but rarely have time to learn a language from top to bottom. They just need enough to get the job done. In this course, Python Quick Start for Linux System Administrators, you'll quickly get immersed in the Python language in the context of realistic system administration tasks. First, you'll survey the various development environments and learn the core language features. Next, you'll meet the key library modules that allow Python scripts to interact with the rest of the Linux system. Finally, you'll explore processing and modifying text files. When you're finished with this course, you'll have the skills to write simple (and not so simple) sysadmin scripts in Python and have an understanding of the "pythonic" mindset.
  • Course Overview
  • Python Quick Start
    • Why Use Python for System Administration Scripts?
    • Side-by-Side Comparison of Python and Bash
  • Creating a Productive Python Environment
    • Using the Python Interpreter
    • iPython - an Enhanced Interpreter
    • The IDLE Development Environment
    • The PyCharm Development Environment
    • Module Summary
  • Managing the File System with Python
    • Passing Arguments to Functions and Tuples
    • The OS Module, Python Lists, and Walking the File System
    • Demonstration Program: Finding Files That Have No Owner
    • Demonstration Program: File System De-duplication Using Hashes and a Dictionary
    • Lesson Summary
  • Interacting with the Linux System
    • Python's Slicing Operator
    • Creating Command-line Parsers and Accessing the Environment
    • File-like Objects, Streams, and Filters
    • Signals (and How to Ignore Them)
    • Writing and Installing Signal Handlers
    • Lesson Summary
  • Combining Python with Other Tools
    • Introduction and the Difference Between Strings and Bytes Objects
    • Running a Subprocess and Accessing Its Standard Input and Output
    • Sending Mail Messages Using smtplib
    • Writing a Wrapper for df to Monitor Free Disk Space
    • Creating and Reading tar Archives
    • Lesson Summary
  • Manipulating Strings in Python
    • String Literals and Operators
    • String Formatting, Splitting, Joining, and Testing
    • Dates, Times, and Their String Representation
    • Using the re (regex) Module for Text Matching and Substitution
  • Processing Text and Binary Files
    • Reading Binary Files Containing 'C' Structures
    • Using Python's Event Logging Framework
    • Extracting Page Hit Histograms from an Apache Access Log
    • Replacing Partition Names with UUIDs in /etc/fstab
    • Module and Course Summary
Write Your Review

Reviews