Understand and Use Functions in Bash

InstructorCameron Nokes

Share this video with your friends

Send Tweet

In this lesson, we'll go over how bash functions work. Bash functions work like mini bash scripts--you can pass parameters and invoke them just like a bash command. You can also define local variables within a bash function using the local keyword. Local variables follow similar scope rules present in most programming languages.