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

uhh... I have known pushd and popd for quite a long time, but never realized that pushd can be used in place of cd. So what I have been doing all the time is:

pushd .

cd some_dir



I've been using Unix machines and pushd since the mid 1990s and just learned this as well. All those wasted years...

Some examples here:

http://en.wikipedia.org/wiki/Pushd_and_popd

Edit: change to desktop Wikipedia URL.




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

Search: