More notes on a Red Hat class my employer sent me to.
The third installment. (http://stutefish.joeuser.com/index.asp?AID=75646)
Unit 4: The bash Shell Whoohoo! (the bang denotes sincerity)
+ Backward compatible with the Bourne shell (sh)
+ Apparently the de facto Linux standard shell
Some bash Features
+ Command line completion: TAB
+ Command line editing
+ Command line history: history history has a 1k-command buffer and remembers your previous session(s), too. Use bangs to invoke previous commands by name or number (e.g., "!150", "!vi", "!!"--re-runs the last command run).
+ "Sophisticated prompt control" Whatever that means
Shortcuts: File Globbing
+ * matches zero or more characters
+ ? matches any single character
+ [a-z] matches a range of characters
+ [^a-z] matches all characters except the range
Command Line Expansion: The Tilde
+ ~ is a pointer to your home directory
+ Usage: ~/foo/bar
+ ~username is a pointer to username's home directory
Insert more bash wankery here.
There are three reasons you quote things, in bash:
+ Protect special characters from shell interpretation.
+ Group elements together.
+ Preserve whitespace.
There are three kinds of quotes: Single ('), double (''), backslash (\). They are more or less interchangeable (when in doubt, use single quotes).
NOW WE DO SOME LABS.