Title: Functions and Alias
Course: CIS 121: Linux/UNIX I: Fundamentals ~ For IGNITE Review > Section: Learning Modules

Function

A function can be created to run a set of commands and can then be called from your scripts from the command line.

myfunc()  { commands  ; }

Alias

You can create a new name for a command or command sequence with the alias command. For example:

- alias check="who | wc -l"
- alias rm="rm -i"
- alias ll = "ls -l"