Is there a way in Bash to recall the argument of the previous command?
I usually do vi file.c followed by gcc file.c.
vi file.c
gcc file.c
Is there a w
!* runs a new command with all previous arguments.
ls /tmp cd !* #you are now in /tmp