Navigation
The pushd command
Saves the current folder on a stack and moves to another. Perfect to go and come back.
Syntax
pushd <directorio>Copy-ready examples
$ mkdir -p proyectosCreate folder$ pushd proyectosEnter saving the previous$ popdGo backYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- Each pushd stacks the folder; popd unstacks it and returns you there.
FAQ
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course