Part IV. shell expansion

Table of Contents

12. commands and arguments
arguments
white space removal
single quotes
double quotes
echo and quotes
commands
external or builtin commands ?
type
running external commands
which
aliases
create an alias
abbreviate commands
default options
viewing aliases
unalias
displaying shell expansion
practice: commands and arguments
solution: commands and arguments
13. control operators
; semicolon
& ampersand
$? dollar question mark
&& double ampersand
|| double vertical bar
combining && and ||
# pound sign
\ escaping special characters
end of line backslash
practice: control operators
solution: control operators
14. shell variables
$ dollar sign
case sensitive
creating variables
quotes
set
unset
$PS1
$PATH
env
export
delineate variables
unbound variables
practice: shell variables
solution: shell variables
15. shell embedding and options
shell embedding
backticks
backticks or single quotes
shell options
practice: shell embedding
solution: shell embedding
16. shell history
repeating the last command
repeating other commands
history
!n
Ctrl-r
$HISTSIZE
$HISTFILE
$HISTFILESIZE
prevent recording a command
(optional)regular expressions
(optional) Korn shell history
practice: shell history
solution: shell history
17. file globbing
* asterisk
? question mark
[] square brackets
a-z and 0-9 ranges
$LANG and square brackets
preventing file globbing
practice: shell globbing
solution: shell globbing