For example, if I do a
mkdir thisismyfolder912
I remember there is some easier way to switch to thisismyfolder912
than having to do a
cd thisismyfolder912
What is that way and how does it work? Also, what are the other ways I can use this?
command historyshell
For example, if I do a
mkdir thisismyfolder912
I remember there is some easier way to switch to thisismyfolder912
than having to do a
cd thisismyfolder912
What is that way and how does it work? Also, what are the other ways I can use this?
Best Answer
Are you talking about classic history expansion, or Readline processing?
cd !$
on the next input line will substitute in the last argument of the previous line, or M-. or M-_ will yank it using Readline.