
Master bash scripting by exploring basics, creating and running scripts, using variables, control flow, case statements, loops, and debugging, then processing files, scheduling tasks with cron, and command-line scripting.
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.
Compare text-based editors like vi and emacs with gui editors such as atom and sublime. This course uses atom for demos, while vi remains the production standard.
Write your first bash script, learn the shebang and comments, display messages like hello world and welcome to the bash shell scripting, and experiment with variables and permissions.
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.
learn how to format reports in bash using printf with tab and newline, control decimals with %f and precision, and align numbers using width for clear, well-formatted output.
Demonstrates using the escape character to quote text and the backslash for line continuation in echo statements, enabling multi-line scripts and preserving symbols like the dollar sign.
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.
learn to view and use environment variables in bash scripts, understand defaults like home and current working directory, and create your own with export for flexible script configuration.
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.
Learn how to use bash special variables—$#, $?, $!, and $$—to inspect argument counts, last command status, the current shell process number, and background processes in scripts.
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.
Explore the declare statement in bash to declare variables, view them with declare -p, export or remove them, and manage options -x, -r, -i, -l, -u, and -a (arrays).
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.
Explore operator types, perform shell tests, and apply arithmetic, comparison, string, and logical operators. Learn file tests to check existence and emptiness and use them when working with files.
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.
Learn how incremental and decremental operators work in Bash scripting, including postfix and prefix forms of ++ and --, and how they update variable values in expressions.
Explore bash arithmetic comparison operators: less than, greater than, less than or equal to, greater than or equal to, equal to, and not equal to, with [ ] or (( )) syntax.
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.
Explore how dot files in the bash shell configure your environment, login and logout scripts, and prompt customization through files like .bash_profile, .bashrc, and .bash_logout.
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.
Learn to create bash loops using while and until. Declare and increment variables, print outputs with echo, and understand how conditions control execution.
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.
Explore the case statement in bash scripting, compare it with multiple if statements, and implement actions like start, stop, or restart services, including input normalization to lowercase.
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.
Learn to read a file line by line using a for loop, process each line with command substitution and cat, and handle basic file iteration in bash.
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.
practice bash scripting by parsing the passwd file with while and for loops, extracting user id, home directory, and shell using cut and IFS, while excluding non-login entries.
Learn to create and use bash functions, declare them before use, and understand function scope with global and local variables.
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 pass arguments to functions using positional parameters and return results. Explore examples that check user records from a password file and handle missing data gracefully.
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.
Parse arguments in bash with getopts using a while loop and case to handle -f -m -l -n and flags, build a result string, and log to a file.
*** 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.