Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 614 Bytes

bash_builtins.md

File metadata and controls

32 lines (20 loc) · 614 Bytes

Bash Builtins

Generally, a Bash builtin does not fork a subprocess when it executes within a script. An external system command or filter in a script usually will fork a subprocess.

# listing all builtins in bash

alias and unalias

alias dcon='docker container'

dcon --help

unalias dcon

We can define useful aliases in say .docker_aliases in the user's $HOME directory and include it in .bashrc as follows

if [[ -s ~/.docker_aliases ]]; then
  . ~/.docker_aliases
fi

References