Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For me, it was using 'cd' without argument. (It takes you back to your ~). Also, learning the various options of grep (-v, -i, -A, -B) made its use really more powerful.


A useful one I somehow missed early on is

  cd -
to change back to whichever directory you were just in. Every once in a while most of us find ourselves facing someone's "how could you not know that?" look.


Also along these lines are the directory stack manipulation commands: "pushd", "popd", and "dirs" -- along with some related environment variables.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: