Learning Bash Scripting (2022)
2h 26mBeginner2022-11-09
Authors

Scott Simpson
Creating Technology Courses as a Senior Staff Author at LinkedIn
Course details
Bash is a popular command line interpreter and the default option on Linux. In this course, Scott Simpson guides you through using Bash. Scott covers the history and significance of Bash, as well as the basics of using it. He explains how to create a script, make it executable, and run it. Scott steps through programming tasks, dives into Bash control structures, and highlights how to interact with the user. Plus, he shows you how to troubleshoot your scripts.
Skills covered
BashIT AutomationLearningNetwork and System AdministrationOpen Source
Concepts
0. Introduction
- 01 - Learning Bash scripting
- 02 - Introducing GitHub Codespaces
- 03 - Using GitHub Codespaces with this course
- 04 - Using Bash in GitHub Codespaces
1. Using Bash
- 05 - What's Bash
- 06 - Pipes and redirections
- 07 - Bash built-ins and other commands
- 08 - Brackets and braces in Bash
- 09 - Bash expansions and substitutions
- 10 - Brace expansion
- 11 - Parameter expansion
- 12 - Command substitution
- 13 - Arithmetic expansion
2. Programming with Bash
- 14 - Understanding Bash script syntax
- 15 - Choosing a text editor for Bash scripting
- 16 - Displaying text with echo
- 17 - Working with variables
- 18 - Working with numbers
- 19 - Comparing values with test
- 20 - Comparing values with extended test
- 21 - Formatting and styling text output
- 22 - Formatting output with printf
- 23 - Working with arrays
- 24 - Challenge - Make a script that generates a system report
- 25 - Solution - Make a script that generates a system report
3. Bash Control Structures
- 26 - Conditional statements with the if keyword
- 27 - Working with while and until loops
- 28 - Introducing for loops
- 29 - Selecting behavior using case
- 30 - Using functions
- 31 - Reading and writing text files
- 32 - Challenge - Build a script using control structures
- 33 - Solution - Build a script using control structures
4. Interacting with the User
- 34 - Working with arguments
- 35 - Working with options
- 36 - Getting input during execution
- 37 - Ensuring a response
- 38 - Challenge - Make a script that uses input
- 39 - Solution - Make a script that uses input
5. Bash in the Real World
- 40 - Troubleshooting
- 41 - Ensuring script portability
Conclusion
- 42 - Next steps