I can use Alt+. or !$ to get the last argument passed to the previous command, however, is it possible to get the last argument passed to the current command?For example, something that I do frequently is to back up an individual file before overwriting, something likecp somelongfilename.ext somelongfilename.ext.052115So after the first somelongfilename.ext is there a shortcut to bring it back to then just add the .052115 likecp somelongfilename.ext `last_arg`.052115Using Centos 6.6 Final
How can I copy the previous argument for the *current* command?
bash;command history