Directory Stack
adding a directory to the directory stack:
pushd .
pushd directory
going to the last added directory:
popd
listing the directory stack:
dirs -v
going to the 3rd listed directory in the stack:
cd ~3
copying between items n and m in the list:
cp ~n/doysa ~m
mv ~n/doysa ~m
switching between the last two visited directories:
cd -
Refence
archwiki">stackexchange