Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Bash Shell Directory Shortcuts

DZone's Guide to

Bash Shell Directory Shortcuts

·
Free Resource
Go back to your previous directory:

cd -

Go to a new directory and push the current one onto a stack:

pushd /newdirectory

Pop a directory from the stack and go to it:

popd
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}