With bash is there a way to push and pop the current working directory? I tried writing bash;cd dir; ./dostuff;exit;
but the current directory is now dir
.
Linux – push/pop current directory
bashlinux
bashlinux
With bash is there a way to push and pop the current working directory? I tried writing bash;cd dir; ./dostuff;exit;
but the current directory is now dir
.
Best Answer
There is
pushd
andpopd
More to read
Example: