Linux Shell Scripting

Video description

One of the biggest complaints I hear from students is that most of the courses they've taken in the past simply provide information without any context and without any idea of how to put that information to use!  

This course turns that old, frustrating, and outdated way of learning on its head. Have you tried to learn shell scripting on your own, but lack the structure you need to really improve your skills? Are you tired of picking up bits and pieces of information that you can't just seem to put together? Do you learn best by doing? If so, you're going to love this course.  

It's project-based, which means instead of learning bits and pieces of information, you'll write actual shell scripts that you can use in real-world situations. You get the chance to immediately put what you learn to use so that you fully understand and remember it.


Distributed by Manning Publications

This course was created independently by Linux Training Academy and is distributed by Manning through our exclusive liveVideo platform.



About the Technology


About the Video


What's Inside
  • Name your shell scripts and use the proper permissions on your shell scripts.
  • Create and use variables in your scripts.
  • Use shell built-in commands and operating system commands.
  • Make the most out of special variables that are available to you in your scripts.
  • Make decisions by using if statements and performing several different kinds of tests.
  • Check the exit statuses of commands and why you need to.
  • Use cryptographic hash functions.
  • Create random data so you can do things like automatically generate strong passwords for user accounts.
  • Perform the same action or set of actions over a series of data utilizing for loops, while loops, and infinite loops.
  • Control all types of input and output.
  • Accept standard input from a user as well as from another program.
  • Redirect standard output and standard error.
  • Combine standard output and standard error
  • Use command pipelining.
  • Perform text and string manipulation.
  • Process command line arguments.
  • Create functions and learn when to do so.
  • Parse, analyze, and report on log files, CSV files, and other data.
  • Write scripts that execute commands on other systems.


About the Reader
  • Basic understanding of the Linux command line.
  • Access to a computer with a 64-bit processor running either Windows, Mac, or Linux.


About the Author

Jason Cannon started his career as a Unix and Linux System Engineer in 1999. Since that time he has utilized his Linux skills at companies such as Xerox, UPS, Hewlett-Packard, and Amazon.com. Additionally, he has acted as a technical consultant and independent contractor for small businesses and Fortune 500 companies.

Jason has professional experience with CentOS, RedHat Enterprise Linux, SUSE Linux Enterprise Server, and Ubuntu. He has used several Linux distributions on personal projects including Debian, Slackware, CrunchBang, and others. In addition to Linux, Jason has experience supporting proprietary Unix operating systems including AIX, HP-UX, and Solaris.

He enjoys teaching others how to use and exploit the power of the Linux operating system. He is also the author of the books "Linux for Beginners" and "Command Line Kung Fu."



Quotes

Table of contents

  1. Course Introduction
    1. Introduction and Course Overview
    2. Course Download
  2. Course Setup - Creating a Local Linux Shell Scripting Environment
    1. Creating a Local Lab Environment Using Vagrant and VirtualBox - Background
    2. Exercise 1 – Walkthrough – Part I – Windows Users Only
    3. Exercise 1 – Walkthrough – Part I – Mac Users Only
    4. Exercise 1 – Walkthrough – Part I – Linux (CentOS/RHEL) Users Only
    5. Exercise 1 – Walkthrough – Part I – Apple Silicon CPU Users Only
    6. Exercise 1 – Walkthrough – Part II – All Users, Except Apple Silicon Users
    7. Vagrant and VirtualBox Troubleshooting Tips
  3. User and Account Creation - Shell Scripting Project 1
    1. Local User Creation – Intro
    2. Getting Started with Shell Scripting: Naming, Permissions, Variables, Builtins
    3. Special Variables, Pseudocode, Command Substitution, if Statement, Conditionals
    4. Exit Statuses, Return Codes, String Test Conditionals, More Special Variables
    5. Reading Standard Input, Creating Accounts, Username Conventions, More Quoting
    6. Local User Creation – Exercise 2 – Walkthrough
  4. Password Generation and Shell Script Arguments - Shell Scripting Project 2
    1. Random Data, Cryptographic Hash Functions, Text and String Manipulation
    2. Positional Parameters, Arguments, for Loops, Special Parameters
    3. The while Loop, Infinite Loops, Shifting, Sleeping
    4. Local User Creation – Exercise 3 – Walkthrough
  5. Linux Programming Conventions - Shell Scripting Project 3
    1. Advanced Standard Input, Standard Output, and Standard Error - Part I
    2. Advanced Standard Input, Standard Output, and Standard Error - Part II
    3. Local User Creation – Exercise 4 – Walkthrough
  6. Parsing Command Line Options – Shell Scripting Project 4
    1. Case Statements
    2. Functions
    3. Parsing Command Line Options with getopts, Part 1
    4. Parsing Command Line Options with getopts, Part 2
    5. Deleting and Disabling Linux Accounts, Part 1 of 4 (Finding Files)
    6. Deleting and Disabling Linux Accounts, Part 2 of 4 (The userdel command)
    7. Deleting and Disabling Linux Accounts, Part 3 of 4 (Archives with tar)
    8. Deleting and Disabling Linux Accounts, Part 4 of 4 (Disabling Accounts)
    9. Deleting Users – Exercise 5 – Walkthrough
  7. Transforming Data / Data Processing /Reporting – Shell Scripting Project 5
    1. Cut and Awk
    2. Cut and Awk Demonstration Script: Open Network Ports
    3. Sort and Uniq
    4. Parsing Log Files - Exercise 6 - Walkthrough
    5. Data Manipulation and Text Transformations with Sed
  8. Network Scripting Automation of Distributed Systems: Shell Scripting Project 6
    1. Configuring a Mini Network and Scripting for Remote Systems
    2. Scripting Remote Commands – Walkthrough – Part 1
    3. Scripting Remote Commands – Walkthrough – Part 2
    4. Scripting Software Installs, Both Local and Remote
    5. Breaking and Continuing Loops
    6. Remote Software Install – Walkthrough
    7. Scheduling Your Scripts with Cron
    8. Viewing Running Processes
    9. Monitoring Processes – Walkthrough
  9. Course Summary
    1. Summary
  10. Course Extras
    1. What Shell Scripting Is and Why You Should Learn It

Product information

  • Title: Linux Shell Scripting
  • Author(s): Jason Cannon
  • Release date: June 2022
  • Publisher(s): Manning Publications
  • ISBN: 10000DIHV202274