Instructor-led training
LINUX SHELL SCRIPTING Training in Azusa, California
Designed to provide the skills necessary to automate tasks on a Unix or Linux system.
What you'll learn
Designed to provide the skills necessary to automate tasks on a Unix or Linux system. Systems Administrators and Developers alike can avoid errors, save time and money by replacing repetitive work patterns with shell scripts. Care has been taken to present in a format that benefits all students, with or without previous programming experience. Guru Labs believes that the best way to learn shell scripting is writing shell scripts. For this reason, lab time is emphasized. Early labs present the scripting process step by step, while later labs are presented in a challenge format. While official solutions to each lab task are provided, students are encouraged to create their own before examining the solution. In this way, more experienced students are challenged without overwhelming the less experienced.
Prerequisites
Solid understanding of Unix-based systems and proficiency on the Unix or Linux command line.
Course Outline
-
INTRODUCTION TO THE SHELL
- Shell Script Strengths and Weaknesses
- Shells
- Switching User Contexts
- Example Shell Script
- Shell and Environment Variables
- Key Environment Variables
- Which and Type
- General Quoting Rules
- Nesting Commands
- Help from Commands and Documentation
- whereis
- Getting Help Within the Graphical Desktop
- Getting Help with man & info
- Shell Variables
- Shell Meta-Characters
- Command Substitution
-
SHELL SCRIPTING BASICS
- Positional Parameters
- Input & Output
- printf
- alias
- Functions
- Colors in Scripts
- Custom Bash Prompts
- Aliases
- Bash Login Scripts
- Create "userinfo" and "sysinfo" functions
-
WORKING WITH FILES
- Communication Channels
- File Redirection
- Piping Commands Together
- Doing Math
- Filesystem Structures
- Determining Disk Usage With df and du
- cron
- The crontab Command
- crontab Format
- /etc/cron.*/ Directories
- Sending Email with mailx
- Disk and Filesystem Usage
- Redirection and Pipes
-
REGULAR EXPRESSIONS
- Searching Inside Files
- Regular Expression Overview
- Regular Expressions
- RE Character Classes
- Regex Quantifiers
- RE Parenthesis
- The Streaming Editor
- Pattern Matching with Regular Expressions
- Extended Regular Expressions
- Using Regular Expressions With sed
-
BRANCHING AND LOOPING
- Exit Status
- Comparisons with test
- Conditional Statements
- Flow Control: case
- Flow Control: while and until Loops
- The borne for-Loop
- Flow Control: select
- Reporting User Statistics
- Monitoring Filesystem Usage
-
DATA MUNGING
- Text Processing with Awk
- Text Sorting
- Duplicate Removal Utility
- Extracting Columns of Text
- Create "rmhost" function
- Create "showenv" function
- Parsing Mail Server Logs
- Fixing Incorrect Files
-
SECURITY, WHITESPACE, AND OTHER GOTCHAS
- Gotcha: Quoting Variables
- Gotcha: Locales
- Gotchas: Maximum Command Length
- Gotcha: Whitespace in for Loops
- Reading Files with while
- Gotcha: $IFS
- Gotcha: Printing in .bashrc
- Gotcha: Aliases
- Renaming MP3 Files
- Split and Display $PATH
- A tar-based Backup
-
CHALLENGE
- Apache Configuration Files
- httpd.conf – VirtualHost Configuration
- Automated Virtual Host Provisioning
-
EMACS
- Emacs
- The Emacs Interface
- Basic Emacs
- More Emacs Commands
- Text Editing with Emacs
-
THE SECURE SHELL (SSH)
- OpenSSH Client & Server Configuration
- Accessing Remote Shells
- Transferring Files
- SSH Key Management
Training locations
LINUX SHELL SCRIPTING training across the U.S. and beyond.
We provide LINUX SHELL SCRIPTING training onsite and live online for organizations throughout the United States and internationally.
View all LINUX SHELL SCRIPTING training locations
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- Training for groups of 3 or more
- Flexible scheduling
- Experienced instructors
Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com
Ready to train your team?
Let's customize this training for your organization.
Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.