Skip to content
KnowledgeCity

Linux Bash and Shell Scripts

Exhibit the ability to create scripts with commands, variables, functions, and expressions in Linux Bash.
Preview the first lesson free — get full access to all 33 lessons.
Course: On-Demand
Advanced Provider Jeremy Kurtz  7 chapters ·  33 Lessons ·  3h 3m  in Arabic, German, English, Spanish, French, Portuguese, Chinese 

Course Description

In Linux, Bash scripting is a fountain of computing power. It is part of one of the most powerful and efficient operating systems in computing. The basis of shell scripting is in automating common tasks as well as creating scripts to secure, backup, and manipulate large amounts of data. Bash scripting is one of the most profound tools in your Linux arsenal. The ability to automate various repetitive tasks in a multi-threaded environment can save companies countless man hours. In this course, you will learn Bash scripting with commands, variables, functions, and even regular expressions.

What You'll Learn

  • Write Bash shell scripts using commands, variables, functions, and regular expressions
  • Distinguish between Bash, Korn, and C shells and compare a Bash script to a batch file
  • Work with environment and user-defined variables, including variable types and scoping
  • Apply comparison operators, math operators, and string tests in Bash
  • Build conditional logic with if-else-fi, elif, while loops, and for loops, including nesting and ranges
  • Automate commands using pipes and redirectors, redirect stdout and stderr, and modularize work with functions

Key Takeaways

  • Bash scripting automates common, repetitive tasks such as securing, backing up, and manipulating large amounts of data.
  • Automating repetitive tasks in a multi-threaded environment can save companies countless man hours.
  • The course covers shell scripting basics including commands, variables, functions, and regular expressions.
  • Regular expressions let you create precise searches on files without even opening the files.
  • Pipes and redirectors enable command automation, and functions allow you to modularize your command line efforts.

Frequently Asked Questions

What will I learn in this course?

You will learn Bash scripting with commands, variables, functions, and regular expressions, including shell scripting basics; Bash, Korn, and C shells; environment and user-defined variables and their types; comparison and math operators; conditional statements such as if-else-fi, elif, while loops, and for loops; advanced scripting techniques; command automation with pipes and redirectors; and modularization with functions.

What is Bash scripting used for?

According to the course, Bash scripting is used to automate common tasks and to create scripts that secure, backup, and manipulate large amounts of data, saving companies countless man hours by automating repetitive tasks in a multi-threaded environment.

How does this course handle conditional statements and loops?

The course explores if-else, fi, elif, while loop, and for loop conditional statements, covers managing multiple conditions, and includes lessons on nesting if within a loop and using ranges in for loops.

What skills does this course help me build?

This course helps you build skills in Bash (scripting language), Linux scripting, scripting, shell commands, shell script, and Unix commands.

What tools or editors does the course cover for writing scripts?

The course includes setting up the working environment and using the Nano editor, then creating a Bash script.