var
=value
VAR
=value
var
=value
set var
=value
Variable assignment
export var
export VAR
=value
export var
=val
setenv var
val
Set environment variable
${nnnn}
${nn}
More than 9 arguments can be referenced
"$@
"
"$@
"
"$@
"
All arguments as separate words
$#
$#
$#
$#argv
Number of arguments
$?
$?
$?
$status
Exit status of the most recently executed command
$!
$!
$!
PID of most recently backgrounded process
$-
$-
$-
Current options
. file
source file
or . file
. file
source file
Read commands in file
alias x='y'
alias x=y
alias x y
Name x
stands for command y
case
case
case
switch
or case

