Introduction to Bash Scripting

Unix    |    Intermediate
  • 13 videos | 1h 19m 15s
  • Includes Assessment
  • Earns a Badge
Rating 4.5 of 2806 users Rating 4.5 of 2806 users (2806)
Learn the basics of BASH scripting! Bash is a concise scripting language that is used on Unix, Linux, and older versions of Windows and Apple Macs. During this course you will learn to create, execute, document, and comment a Bash script. See how to pass and use arguments; access, display, redirect, get input and output, and return results. Then learn to control and manipulate constants as well as running scripts. See how to create, manipulate, use, and export variables. Study ways to control variable scope, define environmental variables, and set string data output. Conclude by creating and use your own library of functions.

WHAT YOU WILL LEARN

  • Create, execute, document, and comment in a bash script
    Use read and echo to get user input and display script output, and recall how to return results at the end of the script
    Work with variables configured in the environment within a bash script
    Access and use parameters passed in from the command line to a bash script
    Use input and output redirection to send the output to a device, stdout, and stderr
    Use command line tools and key presses to control and manipulate scripts
    Work with bash's built-in variables to get data about the script and the environment
  • Create, use, and manipulate variables within a script
    Create constants, control and understand variable scope, and export variables
    Use escaping and printf to control how variables and string data are displayed
    Create and use functions within a bash script, creating a library of functions that can be used in another script
    Use parameters to pass data to a function and add return codes to get the status or result from a function
    Create, use, and run bash scripts that can manipulate variables, return results from the environment, and use functions

IN THIS COURSE

  • 5m 15s
    In this video, you will create, execute, document, and comment on a Bash script. FREE ACCESS
  • 3m 31s
    In this video, you will use the read and echo commands to get user input and display script output, and recall how to return results at the end of the script. FREE ACCESS
  • Locked
    3.  Working with Environment Variables
    10m 13s
    Find out how to work with variables configured in the environment within a Bash script. FREE ACCESS
  • Locked
    4.  Passing and Using Arguments in Shell Scripts
    5m 46s
    In this video, you will access and use parameters passed in from the command line to a Bash script. FREE ACCESS
  • Locked
    5.  Using Input and Output Redirection
    8m 42s
    In this video, you will use input and output redirection to send the output to a device, standard output, and standard error. FREE ACCESS
  • Locked
    6.  Controlling and Manipulating Running Scripts
    7m 6s
    In this video, you will use command line tools and key presses to control and manipulate scripts. FREE ACCESS
  • Locked
    7.  Working with Built-in Variables
    3m 26s
    Find out how to work with Bash's built-in variables to get data about the script and the environment. FREE ACCESS
  • Locked
    8.  Using and Manipulating Variables
    3m 15s
    During this video, you will learn how to create, use, and manipulate variables within a script. FREE ACCESS
  • Locked
    9.  Applying Advanced Variable Manipulations
    8m 30s
    Learn how to create constants, control and understand variable scope, and export variables. FREE ACCESS
  • Locked
    10.  Formatting Variable Output
    6m 36s
    In this video, you will use escaping and printf to control how variables and string data are displayed. FREE ACCESS
  • Locked
    11.  Creating and Using Functions
    7m 40s
    In this video, you will learn how to create and use functions within a Bash script, creating a library of functions that can be used in another script. FREE ACCESS
  • Locked
    12.  Using Parameters and Return Codes in Functions
    5m 35s
    Learn how to use parameters to pass data to a function and add return codes to get the status or result from a function. FREE ACCESS
  • Locked
    13.  Exercise: Creating Bash Scripts
    3m 40s
    In this video, you will create, use, and run Bash scripts that can manipulate variables, return results from the environment, and use functions. FREE ACCESS

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.8 of 10 users Rating 4.8 of 10 users (10)
Journey Using Linux
Rating 4.3 of 9 users Rating 4.3 of 9 users (9)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.5 of 3079 users Rating 4.5 of 3079 users (3079)
Rating 4.6 of 215 users Rating 4.6 of 215 users (215)
Rating 4.6 of 70 users Rating 4.6 of 70 users (70)