pushd and popd are also pretty neat in that they allow you to change directories using a stack; particularly useful as part of that is that using pushd without any arguments will pop the directory on top of the stack and move you there, while putting your previous directory on top of the stack. When you’re working across directories where you need to move around within each directory, it can be really handy.
cd -
goes back to the last directory you have been inpushd
andpopd
are also pretty neat in that they allow you to change directories using a stack; particularly useful as part of that is that usingpushd
without any arguments will pop the directory on top of the stack and move you there, while putting your previous directory on top of the stack. When you’re working across directories where you need to move around within each directory, it can be really handy.Nice!
Also
cd
without any parameters takes you to your home directory.‘cd …’ goes up a level
2 dots goes up a level, 3 dots is a syntax error:
bash: cd: …: No such file or directory