Contents
-
Invocation ..narguments[Command line arguments] Initialization of yash
-
Syntax ..ntokens[Tokens and keywords] Quotations ..naliases[Aliases] Simple commands ..npipelines[Pipelines] And/or lists ..nasync[Command separators and asynchronous commands] Compound commands …ngrouping[Grouping] If command …nwhile-until[While and until loops] For loop …ncase[Case command] Double-bracket command
-
Parameters and variables ..npositional[Positional parameters] Special parameters ..nvariables[Variables] Variables used by the shell
-
Word expansions ..ntilde[Tilde expansion] Parameter expansion …nparam-prefix[Prefix] Parameter name …nparam-index[Index] Modifier ..ncmdsub[Command substitution] Arithmetic expansion ..nbrace[Brace expansion] Field splitting ..nglob[Pathname expansion] Extension in pathname expansion
-
Pattern matching notation ..nnormal[Normal characters] Single-character wildcard ..nmultiple[Multi-character wildcard] Bracket expression ..nbra-normal[Normal characters (in bracket expression pattern)] Range expressions ..nbra-colsym[Collating symbols] Equivalence classes
-
Redirection ..nfile[Redirection to files] Socket redirection ..ndup[Duplication of file descriptors] Here documents and here strings ..npipe[Pipeline redirection] Process redirection
-
Command execution ..nsimple[Execution of simple commands] Command search ..nexit[Termination of the shell] Functions …nlocalvar[Local variables] Command execution environment
-
Interactive mode ..nprompt[Prompts] Command history
-
Built-in commands ..ntypes[Types of built-in commands] Syntax of command arguments
-
Line-editing ..noptions[Shell options on line-editing] Editing modes ..ncommands[Line-editing commands] Basic editing commands …nmotion-commands[Motion commands] Editing commands …ncompletion-commands[Completion commands] Vi-specific commands …nemacs-commands[Emacs-specific commands] History-related commands …nsearch-commands[Search mode commands] Escape sequences ..ncompletion[Command line completion] Completion details
-
Frequently asked questions and troubleshooting ..nunicode[How can I use Unicode (non-ASCII) characters?] Line-editing does not work
-
Formal definition of command syntax ..ntoken[Tokenization] Token classification …ncomments[Comments] Syntax
Built-ins
Parenthesized letters indicate the types of built-in commands: (S) for special, (M) mandatory, (L) elective, and (X) extension. Substitutive built-ins are not marked.
All built-ins in alphabetic order
-
.
(dot) (S) -
:
(colon) (S) -
alias
(M) -
array
(X) -
bg
(M) -
bindkey
(L) -
break
(S) -
cd
(M) -
command
(M) -
complete
(L) -
continue
(S) -
dirs
(L) -
disown
(L) -
eval
(S) -
exec
(S) -
exit
(S) -
export
(S) -
false
(M) -
fc
(M) -
fg
(M) -
getopts
(M) -
hash
(M) -
help
(L) -
history
(L) -
jobs
(M) -
kill
(M) -
local
(L) -
popd
(L) -
pushd
(L) -
pwd
(M) -
read
(M) -
readonly
(S) -
return
(S) -
set
(S) -
shift
(S) -
suspend
(L) -
times
(S) -
trap
(S) -
true
(M) -
type
(M) -
typeset
(L) -
ulimit
(M) -
umask
(M) -
unalias
(M) -
unset
(S) -
wait
(M)