Say in the past you had run a very long command, if you want to re-run the last “whatever” command type
!whatever
If you want to re-run the last command but substitute v3 for v4 run:
^v3^v4
Say in the past you had run a very long command, if you want to re-run the last “whatever” command type
!whatever
If you want to re-run the last command but substitute v3 for v4 run:
^v3^v4