Want to Quickly Recall the Last Word or Last Argument from the Previous Command Line? Here’s How.
Time and time again I find myself needing to run another command against the last item on the previous command line. To access that item in your current command, use “!$“. When I’m done with a file, I delete it, as in this example. jason@linuxsvr:~$ mkdir restored jason@linuxsvr:~$ cd !$ cd restored jason@linuxsvr:~/restored$ unzip ~/Downloads/backup.zip … Read more