
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.
Explore the module overview, covering EDS, the first script, user input, parsing arguments, functions, print statements, and escape and continuation characters.
Learn to capture user input in bash using the read command to assign input to a variable, display messages with echo, and control line breaks with echo -n.
Pass inputs to a bash script as arguments during execution, assign them to positional parameters like $1 and $2, and use them to print a name and city.
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 shell scripting by exploring variables, including naming conventions, local and environment variable types, and special variables. Explore the source command, positional parameters, declare, set, unset, and command substitution.
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.
Master bash positional parameters by learning how to pass and access arguments with $1, $2, $3, and $0, and count them with $#, applying to scripts like stopping a service.
Explore how Bash shell variables like $* and $@ expand script arguments, compare quoting effects, and learn how to use IFS to split strings for robust automation.
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.
discover how the source command loads variables and functions into the current shell memory from a different file, enabling organization for big projects and reusable script components.
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.
Master bash scripting by exploring arithmetic, string, relational, boolean, and file test operators, and learn how to apply them to data in this hands-on module.
Learn how to perform tests in Linux using the test command and bracket forms, implement if-then-else logic, and compare numbers and strings with traditional and modern operators.
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.
Explore bash logical operators, including and, or, and not, using two numeric variables in if conditions. Learn true/false evaluation, else paths, and the effect of parentheses and not.
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.
Edit the bash profile to export environment variables and define aliases. Source the file to apply changes and create project-specific commands to navigate folders and run tasks.
Mastering Bash shell scripting: brace expansion lets you quickly create many files with touch, using numeric and alphabetic ranges, without writing a loop.
Explore bash shell parameter expansion, including default values for undefined variables, conditional messages, and substring extraction with offsets (positive and negative) to automate daily tasks.
Master bash scripting with if...then...else logic and nested ifs, using score-based grading and hostname checks to demonstrate practical conditional control.
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.
Master how to control bash loops using sleep, continue, break, and exit to manage iterations, conditions, and script termination.
master bash scripting by using the select statement to build menus, handle user choices with case statements, and automate actions in your scripts.
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.
Write a bash script to read a password file, skip restricted shells, and display uid - shell - home directory for each user, using both while and for loops.
Learn how to work with Bash functions by returning numeric exit statuses and capturing outputs through command substitution or global variables, enabling data-driven automation.
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.