Introduction to Bash Scripting
Learn Bash scripting from scratch! No programming experience needed. Get started with command-line automation and scripting. Perfect for beginners.
Course Content
Introduction to Bash Scripting is a beginner-level Skillshare course taught by Eric Simard. It runs 1h 1m, is taught in English, and includes a certificate of completion. 411 students have enrolled. It is a paid course, first published December 2018.
Learn Bash Scripting: A Beginner's Guide (No Programming Experience Needed!)
This course provides a comprehensive introduction to Bash scripting, perfect for those with no prior programming knowledge. We'll build a solid foundation in automating tasks on Linux systems. Don't hesitate to ask questions – our supportive Facebook group is a great place for clarification!
We utilize a unique learning approach centered around a single resource: a detailed notes.org file (found in the Class Project). This file contains all the information and integrated examples you need to master Bash scripting. If you're new to Emacs and Org Mode, check out our video lessons: [Why learn Emacs and Install Org Mode Video lessons](link to video).
Here's a breakdown of the topics we'll cover:
- Introduction to notes.org & Org Mode: Discover the power of this single resource for efficient learning.
- Special Characters: Understand comments, command separators, and the crucial difference between single quotes and double quotes in Bash.
- Bash Variables: Learn how to declare and effectively use variables in your scripts.
- Functions: Master declaring and calling functions, including how to pass arguments and understand function return values.
- Declare Statement: A deep dive into the nuances of the declare statement for variable control.
- Conditional Statements (if): We'll start with the basic if statement structure and practical examples.
- File Testing with if: Learn how to use the if statement to test for file existence, directory identification, and other file properties. (For a deeper understanding of Linux files, check out our short class [HERE](link to file). We'll also explore using comparison operators like
( <= ... )with different bracket types.) - Loops (For, While, Until): Control the flow of your scripts with while loops and until loops.
- Input Redirection: Learn how to control loops by redirecting input from files or other processes.
- Break & Continue: Understand the differences between break and continue statements and how they affect loop execution.
- Command Line Arguments: Parse command line arguments to make your scripts more flexible. We'll cover:
- Implementing Linux-style arguments.
- Space-separated arguments and using
getopts(with a 2-part video covering usage and error handling). - Creating interactive menus with the
SELECTbuiltin.
The Project will allow you to apply these skills to real-world scenarios.
Need a web app built? Hire the team behind TutorialSearch.io
We ship fast, production-grade full-stack apps (Next.js, React, edge infra) — the same stack that powers this site.