Assume now in /home/dir1/dir2/dir3/dir4/dir5
I use cd
jump to /home
then jump to /home/dir1/dir2
i know cd -
just can go back previous history directory
now i want to go back /home/dir1/dir2/dir3/dir4/dir5
,how can i do?
Advertisement
Answer
- Use
pushd /home
instead of firstcd /home
andpopd
having all that navigation finished. - Or issue
bash
to start new shell session (or whatever shell you are using), do your work and finally typeexit
to close it and return to the previous session. - And the last and not least, in fact its the coolest solution here: use console manager! A nice, simple to use and powerful tool for all types of the Unix and GNU Linux users.