Bash Scripting

Learn how to automate common tasks using bash scripting.

Start[missing "en.views.course_landing_page.learn-the-command-line.course_illustration" translation]
Learn Bash Scripting
Lesson 1 of 1
  1. 1

    Bash (or shell) scripting is a great way to automate repetitive tasks and can save you a ton of time as a developer. Bash scripts execute within a Bash shell interpreter terminal. Any command you c...

  2. 2

    Within bash scripts (or the terminal for that matter), variables are declared by setting the variable name equal to another value. For example, to set the variable [...] to "Hello", you would use...

  3. 3

    When bash scripting, you can use conditionals to control which set of commands within the script run. Use [...] to start the conditional, followed by the condition in square brackets ( [...] ). ...

  4. 4

    There are 3 different ways to loop within a bash script: [...] , [...] and [...] . A for loop is used to iterate through a list and execute an action at each step. For example, if we had a lis...

  5. 5

    To make bash scripts more useful, we need to be able to access data external to the bash script file itself. The first way to do this is by prompting the user for input. For this, we use the [...]...

  6. 6

    You can set up aliases for your bash scripts within your [...] or [...] file to allow calling your scripts without the full filename. For example, if we have our [...] script, we can alias it...

  7. 7

    Take a minute to review what you've learned about bash scripting. - Any command that can be run in the terminal can be run in a bash script. - Variables are assigned using an equals sign with no sp...

What you'll create

Portfolio projects that showcase your new skills

Pro Logo

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo

Bash Scripting

Start[missing "en.views.course_landing_page.learn-the-command-line.course_illustration" translation]