We may earn an affiliate commission when you visit our partners.
Course image
Udemy logo

Bash Scripting and Shell Programming (Linux Command Line)

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.

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

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
Section Introduction
Shell Scripting, Part I
Shell Scripting, Part II

Practice Exercises
Return Codes and Exit Statuses
Exit Statuses and Return Codes
Exit Status Demo
Shell Functions
Functions, Part I
Functions, Part II
Functions
Shell Script Checklist and Template
Shell Script Checklist and Template (Video)
Shell Script Check List and Template
Wildcards
Introduction to Wildcards
Wildcard Introduction, Part I
Wildcard Introduction, Part II
Wildcards in Shell Scripts
Wildcard Scripting Demo
Case Statements and Logic
Case Statements
Logging
While Loops
While Loops, Part I
While Loops, Part II
Debugging Your Bash Programs
Debugging
More Debugging Tips
You will learn how to use the sed command.
Data Manipulation and Text Transformations with Sed
Shell Scripts Used to Create This Course
Scripts Used to Create This Course
Slides
Bonus Section

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

Good to know

Know what's good
, what to watch for
, 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

Save Bash Scripting and Shell Programming (Linux Command Line) to your list so you can find it easily later:
Save

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 haven't picked any books for this reading list yet.

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).
Shell Scripting: Discover How to Automate Command Line...
Most relevant
Linux and Bash for Data Engineering
Most relevant
Linux: Introduction to Shell Scripting for DevOps
Most relevant
The Bash Shell and Basic Scripting in Linux
Most relevant
Linux Commands & Shell Scripting
Most relevant
Creating Shell Scripts in Enterprise Linux
Most relevant
Scripting for Security with Bash
Most relevant
Bash Shell Scripting: From Zero To Automation
Most relevant
Bash Shell Scripting Tutorial for Beginners
Most relevant
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 - 2024 OpenCourser