Skip to content

Comment on Stephen Bourne: Early days of Unix and design of sh [video]parent

Comments

In bash at least, cd with no arguments takes you back to the home directory.

You just saved me about ten seconds a day.

cd - is another nice one, cd to the last working directory (there is a powerful variant using push and pop), but with the - you don't have to remember to push at any point.

More precisely, it takes you $HOME.

Which is the same place. But you could make it different.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.