Hi Tim,

you can use '..' to tell cd to go one folder up from where you are currently
in the folder hierarchy.

So  if you are at /home/tim/folder1/folder2/folder3/folder4/folder5 , then
$ cd .. will put you into folder4
$ cd ../.. will put you into folder3
$ cd ../../.. will put you into folder2
$ cd ../../../.. will put you into folder1

If you are expecting to want to go back to folder5, you might find 'pushd'
and popd' useful.

pushd ../../.. will take you to folder2 but will also remember folder5 as
your prevoius folder on a 'stack' and you can later, from folder2, say
'popd' to 'pop' the top folder from your stack so you will go back to
folder5.

Hope that helps,

Victor
--
Next meeting:  Somewhere quiet, Bournemouth, ???day 2010-12-?? 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
How to Report Bugs Effectively:  http://goo.gl/4Xue

Reply via email to