Jump to content

Relative path

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Brandonforgod (talk | contribs) at 05:14, 17 December 2002 (Preliminary Creation). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

In computing, relative path refers to your path relative to your current working directory.

Example

Here is an example using a Unix / Linux file system:

Your current working directory is:
/users/mark/

You want to change your current working directory to:
/users/mark/bobapples

At that moment, the relative path for the directory you want is:
bobapples

and the absolute path for the directory you want is
/users/mark/bobapples

Because bobapples is the relative path for the directory you want, you may type the following at the CLI to change your current working directory to bobapples:
cd bobapples