echo !$ outputs different strings depending on my previous command line call. For example:mrdumbdumb-redhat:~ mrdumbdumb$ lsmrdumbdumb-redhat:~ mrdumbdumb$ echo !$echo lslsmrdumbdumb-redhat:Documents mrdumbdumb$ cd -/mrdumbdumb-redhat:~ mrdumbdumb$ echo !$echo --!$ seems to expand to the last argument of my last command or the command itself if the command lacked arguments.What exactly is !$?
What does !$ mean exactly?
bash;command line;command history