Bash Scripting Masterclass

Bash scripting is on of the primary tools and administrator can use to optimise the use of the command line and increase productivity. As such, Bash scripting makes up part of the Red Hat Enterprise Linux RHCSA certification and the system administration 2 course as well as the CompTIA Linux + certification. If you already have a little hands on experience with the Linux command line then you can take the next step in to automating those tasks with the Bash Shell Scripting Masterclass. In as a little as 4 hours you will be able to create, use and edit scripts optimising your daily administration tasks.

Shell scripts are text files that contain commands that we can issue at the command line, instead of us having to issue them we can have the script issue the command, especially useful if the task is repetitive. Consider creating user accounts with similar properties, the command useradd only takes one user as an argument, you can create a script that take many usernames as input and set their password in the one go.

During the 4 hour training you will receive the manual in PDF format and access to the lab systems on which you will work. As we progress through the course, taught by Andrew Mallett, theurbanpenguin, you will learn:

Create new scripts and the purpose of the shebang

Make scripts executable and accessible via the PATH variable

Run the script both with and without arguments

Enforce arguments using logic

Prompt for user input during the script execution

Use logic to determine if enough input has been supplied

Using looping structures to iterate through lists

The manual and labs systems are provided for you to work with, you will need to be able to connect to the Labs using SSH from the command line in Linux or macOS or using tools such as PuTTY from windows.