I'm trying to understand what is the unix command !$
.
For example, I know that the command !1
is used to run the history command number 1.
It seems like !$
runs the last command typed in the bash.
For example if I wrote mv folder12 folder123
and then I would write cd !$
I would actually preform cd folder123
.
Is it correct that !$
runs the last command typed in the bash?