Bash Builtin Commands

The following commands are builtin for bash or shell. This is not a complete list and emphasizes those that are more useful for shell programming.

: [arguments]

. filename [arguments]
source filename [arguments] break [n] continue [n] declare [-frxi] [name[=value]] echo [-neE] [arg ...]

eval [arg ...]

exec [[-] command [arguments]]

exit [n]

export [-nf] [name[=word]] ...
export -p

getopts optstring name [args]

let arg [arg ...]

local [name[=value] ...]

read [-r] [name ...]

readonly [-f] [name ...]
readonly -p

return [n]

set [--abefhkmnptuvxldCHP] [-o option] [arg ...]

shift [n]

test expr
[ expr ]

unset [-fv] [name ...]

wait [n]