Built-in Bash commands

alias

alias [-p] {name[=value]}

 

Define or display aliases.

compgen

compgen [options] [string]

 

Generate possible completion matches for string according to the options.

echo

echo {option} {string}

 

Output the string or more strings, separated by spaces, and terminate with a newline. The return status is always 0.

The option -e enable the interpretation of the following escape sequences: \a, \b, \c, \e, \f, \n, \r, \t, \v, \\, \0nnn and \xHH. See also: Special Prompt Strings

The option -n avoids the newline at the end.

help

help [options] [pattern]

 

Display information about built-in commands.

local

local [options] name[=value]

 

Define local variables. Their use is restricted to a function and its children.

printf

printf format [values]

printf -v variable format [values]

 

Formats and prints values under control of the format.

read

read [options] [variables]

 

Read a line from the standard input and split it into fields.


2022-01-31