3) Syntax (functions)

https://ryanstutorials.net/bash-scripting-tutorial/bash-functions.php

  • functions in Bash allows coder to treat the code like normal terminal usage. So, -- ls -- can have a (script scope) alias using function ls(){ #--some code }. And $1 has the same property.