Command Line Kung-fu
Shell History
Event Designator !
• reference commands in shell history
!!
# repeat last command
!<string>
# repeat last command that started with a given string
!^
# reuse first argument from previous command
!$
# reuse last argument from previous command
!!:N
# reuse the nth word from previous command
Index