---

Bash Functions

A Bash function is essentially a set of commands that can be called numerous times. The purpose of a function is to help you make your bash scripts more readable, and to avoid writing the same code over and over again.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis