
Learn what bash is and how bash scripting automates tasks by combining commands into scripts, enabling system administration, file manipulation, and process automation on Linux.
Learn to write robust bash scripts by applying best practices: meaningful variable names, comments, modular code, environment variables, documentation, and version control, with a proper shebang and executable structure.
Explore bash variables, including shell and environment variables, arrays with zero-based indexing, and printing with echo; learn how to declare, access, update, and unset elements.
Master bash arrays, a variable holding multiple values, using zero-based indices to access, print, add, delete, and take ranges of elements.
Master bash operators to perform arithmetic, string manipulation, comparisons, and logical tests. Learn file testing and assignment operators through practical syntax and examples.
Learn how the and and or operators control command flow in Bash by evaluating exit statuses. Use them in conditional statements and command chaining.
Explore bash shell expansion, including wild card expansion, tilde expansion, and brace expansion. Learn command substitution, arithmetic expansion, and parameter expansion to manipulate files and variables.
Learn how loops drive automation in bash: use while and for loops, structure scripts with a shebang and metadata, and iterate arrays to print values while checking conditions.
Explore how conditional statements drive control flow in Bash scripting, using if, elif, and else to execute code blocks based on variable comparisons.
Learn how to capture user input in bash using the read command, including prompts, input length limits, timeouts, and hiding password entries, with practical examples.
Explore how to use the bash select command to build a menu-based interface, covering its syntax, for loop-like behavior, the PS3 prompt, and breaking to exit.
Discover how exit status drives bash scripts by checking the last command's success with $?, where zero means success and non-zero signals failure, guiding if-else decisions.
Learn to build a bash script that collects system information on Linux, including host name, CPU, memory, and disk usage, using command substitution and grep, awk, and cut.
Learn to create a bash script that checks website availability using a for loop and ping, iterating over an array of domains and reporting each site's status.
Learn to build a bash script that checks whether a given number is odd or even using a function, an argument, and modulus with an if-else.
Learn to check disk usage by parsing df -h output, looping through each line, and reporting file systems whose usage exceeds a threshold.
Automate server-to-server scp with a bash script to transfer files from the MDB server to the PDB server, using passwordless ssh for unattended transfers.
Learn to calculate age with a bash script by extracting year, month, and day from dates using the date command, supporting birthdates via command-line arguments and interactive prompts.
Learn to extract mobile numbers and emails from documents using bash scripts. Use regular expressions with grep to capture data and save results.
learn to build a dynamic calculator in bash using bc and arithmetic expansion to perform add, subtract, multiply, and divide with fractional output, controlled by script arguments and scale.
Launch an employee survey project using a bash script with the select command to build a menu-driven interface, capture name, age, country, and color, and save a survey report.
Learn to back up and restore a Postgres database with bash scripting, using pgdump and SQL commands to automate database maintenance.
Welcome to our comprehensive Shell Scripting course! Whether you're a complete beginner or have some experience with the command line, this course is designed to provide you with a thorough understanding of writing Shell Scripts.
We've structured the course at a slow pace, ensuring that every concept is explained thoroughly, making it easy for you to follow along.
Throughout the course, we cover all the fundamentals of Shell Scripting, including variables, decision-making with if-else statements, arithmetic expressions, loops, and functions. By the end of the course, you'll have the skills to automate tasks, solve real-world problems, and write your own Shell Scripts confidently.
Our project-based approach in the last two sections allows you to apply everything you've learned in the course to create scripts that solve practical, real-world challenges.
By enrolling in this course, you'll learn how to:
- Navigate and utilize the command line effectively
- Automate tasks using Shell Scripts
- Work with variables and make decisions using if-else statements
- Use arithmetic expressions and loop through files and folders
- Understand variable scope and create functions
- Develop Shell Scripts to tackle real-world problems
Topics I covered:
Bash Fundamental
1. What is bash and bash scripting?
2. Linux basic commands
Bash Intermediate
1. What is variable and how to use it and types of variable?
2. What is array and how to use it?
3. How is loop and how to use it?
4. Types of operator in bash and use of it?
5. Logical &&, || operator
6. Shell expansions in bash scripts.
7. What is function and how to use it?
8. Conditional statement in bash scripting.
9. How to write bash scripts?
10. How to get user input using read command?
11. How to use select command ?
12. Exit status in bash scripts?
Projects:
1. Get system info
2. Check website status
3. Check file wise line count
4. Check odd and even number
5. Check disk usages
6. Server to server SCP
7. How to calculate age
8. How to make a dynamic calculator?
9. How to get mobile number and email?
10. How to create a survey form using bash?
11. How to backup and restore in bash ?
And much more! Join us on this journey to master Shell Scripting and become proficient in automating tasks and solving complex problems efficiently.