Hacker News new | past | comments | ask | show | jobs | submit login

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.




I 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.


Much 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: