Skip to content

Glossary: Linux for Developers

function (shell)

Also written: function

A name given to a few shell lines you use more than once. Inside it, `$1` is the function's own first argument, as in pages.sh's `check`.

Where the book teaches it

Related terms

Script arguments ($1, $#, "$@")