pushd/popd
Push/pop Dir
You can save pwd
on a “stack” with pushd
and then return to it with popd
.
[ecomaikgolf@desktop ~/]$ cd archives/documents/tugraz/scan-tugraz [ecomaikgolf@desktop ../tugraz/scan-tugraz/]$ pushd ~ ~/archives/documents/tugraz/scan-tugraz [ecomaikgolf@desktop ~/]$ cd /tmp [ecomaikgolf@desktop /tmp/]$ cd [ecomaikgolf@desktop ~/]$ popd ~/archives/documents/tugraz/scan-tugraz [ecomaikgolf@desktop ../tugraz/scan-tugraz/]$ pwd /home/ecomaikgolf/archives/documents/tugraz/scan-tugraz [ecomaikgolf@desktop ../tugraz/scan-tugraz/]$