Shortcut | Explanation |
---|---|
!! | Last command |
!:n | Last command’s nth argument |
!* | Last command’s arguments |
!$ | Last command’s last argument |
!:m-n | Last command’s mth through nth arguments |
!:n- | Last command’s nth through second-to-last arguments |
!:n-$ | Last command’s nth through last arguments |
!:n* | Last command’s nth through last arguments |
!n | The nth command in the history |
!-n | The command n commands ago |
!-n:m | The command n commands ago’s mth argument |
!-2:2 | The command two commands ago’s second argument |
!-2:0 | The command two commands ago without arguments |
Last active
March 28, 2019 20:57
-
-
Save Sam-Gram/d546875d73af2d32ca043bd7379063f3 to your computer and use it in GitHub Desktop.
Bash exclamation point expansions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment