We may earn an affiliate commission when you visit our partners.
Course image
Jason Cannon

If you want to learn how to write bash shell scripts like a pro, solve real-world problems, or automate repetitive and complex tasks, read on.

Hello. My name is Jason Cannon and I'm the author of Linux for Beginners, Python Programming for Beginners, and the founder of the Linux Training Academy. I started my IT career in the late 1990's as a Unix and Linux System Engineer and I'll be sharing my real-world bash scripting and shell programming experience with you throughout this course.

Read more

If you want to learn how to write bash shell scripts like a pro, solve real-world problems, or automate repetitive and complex tasks, read on.

Hello. My name is Jason Cannon and I'm the author of Linux for Beginners, Python Programming for Beginners, and the founder of the Linux Training Academy. I started my IT career in the late 1990's as a Unix and Linux System Engineer and I'll be sharing my real-world bash scripting and shell programming experience with you throughout this course.

By the end of this course you will be able to create bash scripts with ease. You'll learn how to take tedious and repetitious tasks and turn them into programs that will save you time and simplify your life on Linux, Unix, or MAC systems.

Here is what you will get and learn by taking this Bash Scripting course:

  • A step-by-step process of writing bash shell scripts that solve real-world problems.
  • The #1 thing you must do every time you create a bash script.
  • How to quickly find and fix the most common shell scripting errors.
  • For those of you who want to start programming right away, watch the two video shell scripting crash course. If you do nothing else than watch these two videos you'll be ahead of most bash programmers.
  • How to accept input from a user and then make decisions on that input.
  • How to accept and process command line arguments.
  • What special variables are available, how to use them in your shell scripts, and when to do so.
  • A shell script creation check list You'll never have to guess what to include in each of your shell scripts again. Just use this simple check list.
  • A shell script template (boilerplate). Use this format for each of your shell scripts. It shows exactly what to include and where everything goes. Eliminate guesswork.
  • Practice exercises with solutions so you can start using what you learn right away.
  • Real-world examples of shell scripts from my personal collection.
  • A download that contains the scripts used in the presentations and lessons. You'll be able to look at and experiment with everything you're learning.
  • Quizzes after each section just to make sure you're learning the most important aspects of shell scripting.
  • Unconditional Udemy 30 day money-back guarantee - that's my personal promise of your success.

Learn to Program Using Any Shell

What you learn in this course can be applied to any shell, however the focus is on the bash shell and you'll learn some really advanced bash features. Again, whether you're using bash, bourne (sh), KornShell (ksh), C shell (csh), Z shell (zsh), or even the tcsh shell, you'll be able to put what you learn in this course to good use.

Perfect for Linux, Unix, Mac and More.

Also, you'll be able to use these scripts on any Linux environment including Ubuntu, Debian, Linux Mint, RedHat, Fedora, OpenSUSE, Slackware, Kali Linux and more. You're scripts will even run on other operating systems such as Apple's Mac OS X, Oracle's Solaris, IBM's AIX, HP's HP-UX, FreeBSD, NetBSD, and OpenBSD. (Sorry, this course is NOT for Windows scripting or powershell scripting.)

Here's What People Are Saying About Jason and His Courses:

"Another amazing course by Jason Cannon. This course helped propel my bash scripting to a whole new level. Now, I can't stop automating my work flow. :) Pretty soon everything will do everything itself." Fernando Garcia, Udemy Student

"Excellent course on Linux. It is the best way to get started using Linux that I have come across." Chris Bischoff, Udemy student

"This class was a great review of the 2 Linux classes I took in school. I learned plenty of new stuff and got a great refresher on things I haven't used in some time. I did well on my interview and got the job I was looking for. Thanks. " Alan Derrick, Udemy student

"This was a great course. Learned a lot from it. " Ricardo José Crosara Junior, Udemy student

"Excellent starter course. Very good and complete guide to get you started on working on Linux." Brian Mulder, Udemy student

"Great course. Easy to understand for beginners and a great refresher for experienced users. " Spencer Ball, Udemy student

"Very well laid out course. Thanks Jason. " Eric Etheredge, Udemy student

"Love it... it's absolutely one of the best courses I've taken here on Udemy." Idriss N, Udemy student

"Awesome Course. Another great one. Thanks Jason. " --John Wilmont, Udemy student

"Excellent Course. Having come from a moderate understanding of Linux, this course has given me a deeper and more streamlined understanding of Linux. Definitely worth the money." Armando Cabrera, Udemy student

"Fantastic course and very beautifully explained." S John, Udemy student

"Great course, great instructor. I enjoyed every minute of it. I recommend this course 100%." Alfredo, Udemy student

"I am lovin' it. Nice way to begin one's journey into Linux." Rohit Gupta, Udemy student

Free Bonus - Downloads of All the Material Covered

As an added bonus for enrolling in this Bash Scripting video training course, you'll receive access to all the slides and shell scripts used in the lessons. You can download them and refer to them when you want to jog your memory or double-check your work.

Enroll now and to learn how to write bash shell scripts like a pro.

Enroll now

Here's a deal for you

Save money when you learn with a deal that may be relevant to this course.
All coupon codes, vouchers, and discounts are applied automatically unless otherwise noted.

What's inside

Learning objectives

  • Write shell scripts that can be used on linux, mac, and unix operating systems.
  • Automate tasks using shell scripts.
  • Create complex scripts that take advantage of advanced bash shell features.

Syllabus

Bash Programming Course Overview and Downloads
Course Overview
Course Downloads, Including the scripts used in the course and a cheat sheet
Shell Scripting in a Nutshell
Read more

The contents of this lecture are so secret I'm not even allowed to describe it! Open, if you dare.

Traffic lights

Read about what's good
what should give you pause
and possible dealbreakers
Teaches how to create bash shell scripts that solve real-world problems, which is a highly sought-after skill in the IT industry as well as for personal projects and use
Goes over the most common bash programming errors and how to fix them, which often requires learners to spend a lot of time and effort researching and debugging on their own
Taught by Jason Cannon, who is the author of several popular books on Linux and programming, and who has years of experience in IT and Unix/Linux systems engineering
Covers special variables, a fundamental concept in shell scripting that's often overlooked in other beginner courses
Includes a shell scripting cheat sheet, which is a handy reference that can save time and effort

Save this course

Create your own learning path. Save this course to your list so you can find it easily later.
Save

Reviews summary

Practical bash scripting for automation

Learners say this course is a highly practical and effective guide to Bash scripting and shell programming, particularly for automating tasks and solving real-world problems. Many found it an excellent starting point for beginners, while also serving as a great refresher for experienced users. The instructor's real-world experience is frequently highlighted, alongside the step-by-step process, practice exercises, and useful downloads like a shell script template and checklist. It significantly helps in developing a deeper understanding of Linux and improving workflow.
The learned skills are highly applicable across various shells and operating systems.
"I found the scripting techniques are broadly applicable to various Unix-like systems."
"The course clearly explains how the concepts apply to different shells beyond just Bash."
"My scripts work on Linux, Mac OS X, and other Unix environments as promised."
Features a clear, step-by-step layout with valuable supplementary resources.
"Very well laid out course. Thanks Jason."
"I appreciate the structured approach with practical exercises and downloadable scripts."
"The course includes useful resources like a shell script checklist and template, which I found very helpful."
Instructor Jason Cannon is consistently praised for his clarity and expertise.
"Another amazing course by Jason Cannon."
"Great course, great instructor. I enjoyed every minute of it. I recommend this course 100%."
"Fantastic course and very beautifully explained."
Suitable for both beginners and experienced users seeking a comprehensive refresher.
"Excellent course on Linux. It is the best way to get started using Linux that I have come across."
"Great course. Easy to understand for beginners and a great refresher for experienced users."
"Excellent starter course. Very good and complete guide to get you started on working on Linux."
Enables practical automation of repetitive tasks and real-world problem-solving.
"This course helped propel my bash scripting to a whole new level. Now, I can't stop automating my work flow. :)"
"I learned plenty of new stuff and got a great refresher on things I haven't used in some time. I did well on my interview and got the job I was looking for."
"Having come from a moderate understanding of Linux, this course has given me a deeper and more streamlined understanding of Linux."

Activities

Be better prepared before your course. Deepen your understanding during and after it. Supplement your coursework and achieve mastery of the topics covered in Bash Scripting and Shell Programming (Linux Command Line) with these activities:
Follow online tutorials on bash scripting
Supplement your understanding of bash scripting by following comprehensive online tutorials.
Browse courses on Bash
Show steps
  • Identify reputable online tutorials on bash scripting
  • Follow the tutorials step-by-step, practicing the concepts
Review basic Linux commands
Review basic Linux commands to ensure a strong foundation for shell scripting.
Browse courses on Linux
Show steps
  • Create a list of essential Linux commands
  • Practice using these commands in the terminal
Read 'Advanced Bash Scripting Guide'
Expand your knowledge of bash scripting by reviewing an authoritative book on the subject, providing a comprehensive reference and deepening your understanding.
Show steps
  • Read selected chapters relevant to the course topics
  • Take notes and highlight key concepts for future reference
Five other activities
Expand to see all activities and additional details
Show all eight activities
Complete shell scripting exercises
Sharpen your shell scripting skills by completing practical exercises that challenge your understanding.
Browse courses on Bash
Show steps
  • Find online resources or textbooks with shell scripting exercises
  • Solve the exercises, debugging your scripts as needed
Develop a shell script for a specific task
Apply your bash scripting knowledge to a practical project, solidifying your understanding.
Browse courses on Bash
Show steps
  • Identify a task that can be automated using a shell script
  • Plan and write the shell script
  • Test and debug the script to ensure its functionality
Help other students with shell scripting
Reinforce your understanding of bash scripting by assisting other students with their challenges.
Browse courses on Bash
Show steps
  • Identify opportunities to help other students in online forums or discussion groups
  • Provide clear explanations and guidance on shell scripting concepts and exercises
Contribute to open-source shell scripting projects
Deepen your understanding of shell scripting by collaborating on real-world projects and contributing to the open-source community.
Browse courses on Bash
Show steps
  • Identify open-source shell scripting projects on platforms like GitHub
  • Review the project documentation and contribute to bug fixes or feature enhancements
Create a shell script library
Develop a comprehensive collection of reusable shell scripts for common tasks, expanding your scripting capabilities.
Browse courses on Bash
Show steps
  • Plan the structure and functionality of the shell script library
  • Write individual shell scripts for specific tasks
  • Test and debug the scripts to ensure their reliability
  • Document the library for easy reference and use

Career center

Learners who complete Bash Scripting and Shell Programming (Linux Command Line) will develop knowledge and skills that may be useful to these careers:

Reading list

We've selected 50 books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Bash Scripting and Shell Programming (Linux Command Line).
A highly influential book that offers practical advice on a wide range of software development topics, including writing maintainable code, learning continuously, and managing a programming career. It's valuable for programmers at all stages, providing timeless wisdom that transcends specific technologies. is often recommended as essential reading for developers looking to improve their craft.
This classic book dives deep into the powerful text processing tools, sed and awk, which are often used in conjunction with shell scripts.
This comprehensive handbook covers the entire field of robotics and automation, from the basics to the latest developments. It is an essential resource for anyone who wants to learn about this rapidly growing field.
Is widely regarded as an excellent starting point for anyone new to the Linux command line. It progressively builds knowledge from basic navigation to shell scripting, making it ideal for beginners. It's often recommended as a foundational text in introductory courses.
A fast-paced introduction to Python, this book provides a solid foundation in programming concepts and includes projects to help solidify understanding. It's suitable for those with no prior programming experience and is often used as a textbook for introductory courses. The third edition is updated for 2023 and covers Python basics as well as projects in data analysis, web development, and gaming.
This comprehensive guide covers a wide range of shell scripting topics, making it useful for both beginners and experienced users.
Provides a comprehensive overview of the Linux command line, including shell scripting. It is suitable for both beginners and experienced users.
Comprehensive guide to the Bash shell. It covers all aspects of the Bash shell, from basic commands to advanced scripting techniques.
Comprehensive guide to shell scripting. It covers all aspects of the Bash shell, from basic commands to advanced scripting techniques.
Classic reference on Unix shell programming. It comprehensive guide to the Bash shell, and it covers a wide range of topics, from basic shell commands to advanced scripting techniques.
Provides a comprehensive overview of the Linux kernel architecture and internals, including detailed coverage of kernel data structures and algorithms.
Focuses on the principles and practices of writing clean, readable, and maintainable code. It provides detailed guidance on naming conventions, function design, and code structure, which are crucial skills for developing robust and understandable software. While the examples are primarily in Java, the concepts are universally applicable to any programming language. It is considered a must-read for developers aiming to improve code quality.
While not solely focused on the command line, this book provides crucial context by explaining the inner workings of the Linux operating system. Understanding the underlying system enhances command line proficiency. The third edition includes updated coverage on relevant topics like virtualization and containers.
A comprehensive guide covering a wide range of Linux command line and shell scripting topics. Suitable for beginners and those looking to expand their knowledge. Can serve as both a learning resource and a reference.
Specifically targets the use of Bash scripting in cybersecurity operations. It covers automating security processes, strengthening defenses, and real-time threat response. It's a practical guide for security professionals and aligns well with the cybersecurity-related courses mentioned.
This is the foundational book in the 'Month of Lunches' series for PowerShell, focusing on the shell's inner workings, core patterns, and basic usage before diving into scripting. It's highly recommended as a starting point before moving on to scripting specifically.
A practical guide focused on using PowerShell for system administration and workflow automation. is valuable for IT professionals looking to streamline their tasks and improve efficiency using PowerShell.
Offers practical advice and best practices for system and network administration in real-world environments. It covers a wide range of topics relevant to managing Unix and Linux systems effectively and reliably. It's a valuable resource for aspiring and experienced system administrators.
This widely used textbook provides a broad understanding of operating system principles, with significant coverage of Unix and Unix-like systems. It's essential for students seeking a theoretical foundation in operating systems, which directly underpins the practical aspects of Unix. is commonly used as a textbook in undergraduate and graduate computer science programs.
A comprehensive guide to the Linux operating system, covering installation, configuration, and administration. While focused on Linux distributions, much of the content is applicable to Unix systems due to their shared heritage. It's a good all-around reference for those working with Linux, which is highly relevant in the modern Unix landscape. The 10th edition includes contemporary topics like containerization and Ansible.
This recent book focuses on using Bash scripting for offensive security purposes. It covers automating security tasks, developing custom tools, and uncovering vulnerabilities. It's highly relevant for those interested in the cybersecurity applications of Bash.
This cookbook provides practical, task-oriented examples for using Bash effectively. It's a great resource for learning by doing and finding solutions to common command line problems. Useful for both learning and as a reference.
A widely-used textbook in universities, this book provides a rigorous introduction to fundamental algorithms and data structures. It covers a broad range of topics essential for understanding the efficiency and complexity of programs. While mathematically intensive, it foundational text for anyone pursuing a deeper understanding of computer science and programming.
Takes users from the basics to advanced Bash programming. It covers customizing the environment, automating tasks, writing structured scripts, and interacting with web services. It's suitable for power users and system administrators aiming to master Bash for complex tasks.
Written by experienced system administrators, this book provides a practical approach to managing Linux systems, covering topics such as user management, networking, and security.
Explores PowerShell's role in cybersecurity, covering both offensive and defensive capabilities. It's suitable for security professionals, penetration testers, and system administrators interested in leveraging PowerShell for security operations. It includes insights into event logs, remoting, and mitigation techniques.
Definitive guide to the process of refactoring, which is restructuring existing code without changing its external behavior. It provides a catalog of refactoring techniques and explains when and why to apply them. This crucial book for any developer working on real-world software projects to improve code quality and maintainability.
Comprehensive guide to using Sed and Awk in a variety of real-world scenarios. It covers topics such as text processing, data manipulation, and scripting.
By a well-regarded author in the Unix/Linux space focuses on writing efficient and maintainable shell scripts. It covers best practices and techniques for improving your scripting skills, which is highly relevant for anyone moving beyond basic Bash usage.
Authored by the 'Gang of Four,' this book presents a collection of reusable design patterns for object-oriented software. Understanding these patterns helps in writing more flexible, maintainable, and efficient code. It's a valuable resource for intermediate to advanced programmers looking to improve their software design skills.
This comprehensive guide aims to take individuals from Bash scripting basics to expert proficiency. It covers essential topics and progresses to advanced techniques for complex automation tasks in Unix/Linux environments. It recent publication, making it relevant for contemporary practices.
Another strong reference for Unix system administration, this book offers practical guidance and covers a wide array of administrative tasks. While some editions are older, the core principles and tools discussed are still relevant for understanding system management. It's a useful resource for those performing day-to-day administration.
Provides a practical approach to mastering Linux shell scripting, covering a range of topics from basic commands to more advanced scripting techniques. It's suitable for users looking to enhance their scripting abilities for system administration and automation.
Provides a practical guide to Linux command-line and shell scripting, including Bash. It's suitable for those looking to deepen their understanding of scripting techniques and automate tasks effectively.
Covering two fundamental Unix text processing tools, sed and awk, this book is essential for anyone who needs to manipulate text files from the command line. These utilities are powerful for scripting and automation. It's a practical guide for common text processing tasks.
Teaches you how to use deep learning to automate tasks in a variety of domains, such as computer vision, natural language processing, and speech recognition.
Teaches you how to write effective Linux programs, covering topics such as system calls, file I/O, and network programming.
Delves into powerful, less commonly known shell commands and techniques. It's excellent for intermediate to advanced users looking to enhance their scripting skills and leverage the full power of the command line.
Following up on Clean Code, this book focuses on the professional aspects of being a programmer, including topics like professionalism, time management, and working with others. It provides valuable guidance for developers transitioning into or working in professional environments. It complements the technical skills learned from other programming books.
Considered a classic, this book introduces the Unix philosophy and programming tools. While older, the fundamental concepts and approaches to using the Unix environment remain highly relevant. It provides valuable historical context and insights into the design principles that shaped Unix. It's more valuable for its foundational knowledge and philosophical insights than as a current technical reference.
Classic reference on the AWK programming language. AWK powerful tool for text processing and data manipulation, and it is often used in shell scripts.
Practical guide to using Sed, with a focus on real-world examples. It covers a wide range of topics, from basic editing tasks to more complex text processing operations.
A highly recommended book for Java developers, providing best practices and guidelines for writing robust, efficient, and well-designed Java code. It delves into the nuances of the Java language and its libraries, making it invaluable for anyone working extensively with Java. While language-specific, the principles of effective programming it discusses are broadly applicable.
For those working in Windows environments, PowerShell is the primary command line tool. provides a deep understanding of PowerShell's capabilities for automation and administration. Essential for Windows professionals.

Share

Help others find this course page by sharing it with your friends and followers:

Similar courses

Here are nine courses similar to Bash Scripting and Shell Programming (Linux Command Line).
Introduction to Bash Shell Scripting
Most relevant
Introduction to Open Source Operating Systems - Bachelor's
Most relevant
Shell Scripting with Bash: Basics
Most relevant
Linux: Introduction to Shell Scripting for DevOps
Most relevant
Mastering Ansible Automation
Most relevant
Learn Ubuntu Fast: Learn, Practice, and Advance your...
Most relevant
Mastering Linux: The Comprehensive Guide
Most relevant
The Linux Command Line Bootcamp: Beginner To Power User
Most relevant
Essential Unix Skills for Developers
Most relevant

Udemy Buyer Protection & Guarantee

Verified partner policies & purchase protections

Global Marketplace Leader
Free Trial & Audit

Free Lecture Previews

Free preview video lectures available for all courses; optional 7-day free trial on Personal Plan subscriptions (cancel before trial ends to avoid conversion).

Return & Refund Policy

30-Day Money-Back Guarantee

30-day money-back guarantee on all eligible individual course purchases (provided course content has not been substantially consumed or downloaded). Subscription fees are non-refundable once billed.

Buyer Protections

Verified Academic & Industry Partner

Lifetime access to purchased individual courses and future updates, verifiable certificate of completion, and direct student Q&A forums.

Key Purchase Protections
30-day 100% money-back guarantee on course purchases
Lifetime access on web, mobile, and offline
Certificate of completion included with purchase
Direct instructor Q&A and active student community
OpenCourser Verified Partner Policy details last reviewed: 2026-10-22
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2025 OpenCourser