What is bang dollar (!$) in Bash?
Bang dollar seems to refer to the last part of the last command line. E.g. $ ls -l .... something $ !$ -l bash: -l command not found I can find plenty on the dollar variables (e.g. $! ) but not on this. Any explanation? That's the last argument of the previous command. From the documentation : !!:$ designates the last argument of the preceding command. This may be shortened to !$ . Remark. If you want to play around with Bash's history, I suggest you turn on the shell option histverify like so: shopt -s histverify (you can also put it in your .bashrc to have it on permanently). When using