
Get the most from this bash scripting course by securing hands-on access to a linux or unix system (local, virtual, or cloud) and actively completing quizzes, assignments, tests, and projects.
Experience intentional repetition to reinforce concepts and ensure the modular lesson is complete, with brief revisits improving learning. Apply these repetitions within the bash shell scripting course to reinforce mastery.
Learn the basics of bash functions, declare functions in two common styles, and call them to produce reusable code, emphasizing declaring before use.
Explore the bash printf function, mastering formatting, alignment (including left and right), and newline handling to generate well formatted reports across multiple strings.
Start with the base bash script for assignment 1, run it, and study the output; then modify to produce a formatted report with a header using the learned print option.
master bash variable naming conventions, avoiding predefined names, braces usage, and shell options like set -u and unset to manage local, environmental, and shell variables.
Explore how to declare and manipulate bash variables, avoid leading-digit names, observe that the latest assignment wins, enforce read-only constants, and handle unset variables with set -u.
Explore bash variables, including global and environment variables, and understand scope. Learn how export makes a variable available to subshells, while the parent shell may not access it.
Explains how variables interact with functions in bash, uses the local keyword to confine a variable to function scope, and contrasts outside versus inside function values with dog and tiger.
Master command substitution in linux shells by replacing a command with its output; use backticks or $() to assign results or embed in commands, e.g., hostname and IP extraction.
Explore bash arithmetic using a and b across methods like arithmetic expansion with (( )), the expr command, let, and declare -i for integers.
Learn arithmetic operations in bash scripting: addition, subtraction, multiplication, division, and modulus with two variables. Use a runnable template script (shebang) to see sum, difference, product, division, and modulus.
Master Bash string comparisons by using equality, inequality, and greater-than checks on string variables, plus tests for empty or nonempty values to drive conditional logic.
Master bash file test operators to check file existence, distinguish files from directories, verify ownership and group, and assess read, write, execute permissions and age comparisons (newer vs older).
Customize the bash prompt by configuring PS1 to display user name, computer name, time, date, and the present working directory, and learn how to persist these changes via startup files.
Create and use alias commands to save time, persist them in your profile, and quickly list directories or profile files with short, reusable shortcuts across any location.
Master bash for loops by iterating over numbers, names, and generated sequences, controlled by a loop variable; this lays the groundwork for automating file tasks.
Learn to read a file line by line with a while loop, display each line, and conditionally exit or process data using simple bash examples with an animals file.
Learn to source an external bash function library, call its functions to fetch user records and home directories, and capture results with command substitution.
Learn how the bash shift built-in processes script arguments by looping with for or while, then move left and adjust $1 using the shifted list.
*** Access to LIVE LINUX LABS ***
*** Supercharge your productivity with shell scripts! ***
This course will help you learn the following:
A step-by-step & systematic approach in learning shell scripting embedded with quizzes, assignments & projects.
Accept user input
Process command-line arguments
Understand the shell special variables
Using Brace expansion
Using conditional statements & loops: if..then..else, while, until, for and case
Create user menus using "select"
***** Write loops directly on the command-line for disposable scripts *****
Quizzes, Assignments, Projects & Tests -- To enhance your learning.
Resources included to "boost" your productivity:
Template Scripts.
A design approach for medium & complex projects.
Real-world sample scripts.