Re-using the last bash command argument
Tired of re-typing the same argument twice for different commands? For bash there is an easy solution:
1
2
mkdir testdir
cd !$
The '!$' maps to the last argument of the previous command, a real time saver!
This post is licensed under CC BY 4.0 by the author.