! |
Begin a history substitution. |
!! |
Previous command. |
!
N
|
Command number
N
in history list. |
!-
N
|
N
th command back from current command. |
!
string
|
Most recent command that starts with
string
.
|
!?
string
? |
Most recent command that contains
string
.
|
!?
string
?% |
Most recent command argument that contains
string
. |
!$ |
Last argument of previous command. |
!!
string
|
Previous command, then append
string
.
|
!
N string
|
Command
N
, then append
string
. |
!{
s1
}
s2
|
Most recent command starting with string
s1
,
then append string
s2
. |
^
old
^
new
^ |
Quick substitution; change string
old
to
new
in previous
command; execute modified command. |