4 ms·
Not a word about command editing. Learn keyboard shortcuts to edit the current command line and you'll save years of your life. ESC-. (dot) will get the last
by motoboi 6y ago
Not a word about command editing.
Learn keyboard shortcuts to edit the current command line and you'll save years of your life.
ESC-. (dot) will get the last argument of the last command. This one alone will save you months.
CTRL-R will search backwards. This other will save more months.
- penthief 6y agoI remember being advised that it was more efficient to use the command line editing shortcuts instead of changing directory. That was over 10 years ago and I still use the shell with this in mind. I’m not saying I never change directory, but once I do, I tend to stay there. I had to scroll a fair way down to find a comment validating this opinion. Perhaps we’re wrong when saying to change directory efficiently, you don’t.
- motoboi 6y agoMuch faster. Using absolute (or home-relative ~) paths save a lot of time. Because now you can reuse commands a lot more and CTRL-R will yield more hits.