Comment on Stephen Bourne: Early days of Unix and design of sh [video]parentComments−isbadawi11yIn bash at least, cd with no arguments takes you back to the home directory.−paublyrne11yYou just saved me about ten seconds a day.−rdc1211ycd - 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.−emmelaich11yMore precisely, it takes you $HOME.Which is the same place. But you could make it different.
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.