D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Directories



On Wed, Jan 15, 2003 at 09:26:58AM +0000, Richard Brown wrote:

> I am having problems with what is probably a very simple command.... How
> do I go up in a directory tree. I can CD to another directory but I
> can't get back up one! I have tried HELP and HELP HELP etc... but still
> don't know what to do!

cd ..

Each directory contains two special directories, '.' is "here" and
'..' is "back up one".

So, for instance:

a/b/c
a/b/d
a/e/f

If you were in c:

cd ../.. would take you to a
cd .. would take you to b
cd ../c would do nothing useful
cd ../d would take you to d
cd ../../e would tkae you to e
cd ../../e/f would tkae you to f

Steve

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly