I'm using Kubuntu 22.04, with "Konsole" and "Terminator".
I have set a default starting directory for each of them (let's call it /my/quite/complex/default/destination/directory
).
After working a lot, traveling between many different directories, I want to go back to that default, without having to type all that... Is there a simple cd
command to do it?
Note: that directory IS NOT /home/myUser
, therefore cd ~
won't solve the problem, and cd -
only goes back to the last one, not the very first.
Thank you all.
pushd
andpopd
useful - refer to the bash manual under The Directory Stack. See also Short-cut for switching to a given directory – steeldriver Oct 15 '22 at 23:34