Command Substitution
|
Syntax |
Meaning |
|
|
Begin a history substitution. |
|
|
Previous command. |
|
! |
Command number |
|
!- |
|
|
! |
Most recent command that starts with |
|
!? |
Most recent command that contains |
|
!? |
Most recent command argument that contains |
|
|
Last argument of previous command. |
|
|
The current command up to this point. |
|
!! |
Previous command, then append |
|
! |
Command |
|
!{ |
Most recent command starting with string |
|
^ |
Quick substitution; change string |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access