Download Learning the bash Shell, 3rd Edition By Cameron

Transcript
Command
Meaning
\v
The version of bash (e.g., 2.00)
\V
The release of bash; the version and patchlevel (e.g., 3.00.0)
\w
The current working directory
\W
The basename of the current working directory
\#
The command number of the current command
\!
The history number of the current command
\$
If the effective UID is 0, print a #, otherwise print a $
\nnn
Character code in octal
\\
Print a backslash
\[
Begin a sequence of non-printing characters, such as terminal control sequences
\]
End a sequence of non-printing characters
< Day Day Up >