compgen
bash built-in commands, see bash(1)
TLDR
List all commands that you could run
$ compgen -c
List all aliases
$ compgen -a
List all functions that you could run
$ compgen -A function
Show shell reserved keywords
$ compgen -k
See all available commands/aliases starting with 'ls'
$ compgen -ac [ls]
Name
bash, :, ., [, alias, bg, bind, break, builtin, caller, cd, command, compgen, complete, compopt, continue, declare, dirs, disown, echo, enable, eval, exec, exit, export, false, fc, fg, getopts, hash, help, history, jobs, kill, let, local, logout, mapfile, popd, printf, pushd, pwd, read, readonly, return, set, shift, shopt, source, suspend, test, times, trap, true, type, typeset, ulimit, umask, unalias, unset, wait - bash built-in commands, see bash(1)
See Also
bash(1), sh(1)
- Site Search
- Library
- linux docs
- linux man pages
- page load time
- Toys
- world sunlight
- moon phase
- trace explorer