3 ms·
don't type `cd ~` just type `cd`
by blueblob 12y ago
don't type `cd ~` just type `cd`
- guruparan18 12y agoOr type `cd ~username` to goto that user's home path
- lfowles 12y agoAlso: Accidentally ran `cd`? Run `cd -` to return I think there are some pop/push mechanics for working directory too, but I can't find them right now.
- spike021 12y agoOh handy! Hadn't come across that before. Thanks.
- GauntletWizard 12y agoThe commands are pushd and popd, and they're bash (and zsh, and most sane shell) builtins. Pushd to get to a new directory, popd to go back to the last one on the stack.
- OlivierLi 12y agoTip : Setting cd as an alias for pushd make the whole thing much more intuitive.