Path

A path is the general form of a computer file or directory name, giving a unique location of the file or directory in a file system. Paths point to their location using a string of characters signifying directories, separated by a delimiting character, most commonly the (forward) slash character, "/", or the backslash character, "\".

Contents

Absolute path

An absolute path (or full path) is a path that points to a certain location on a file system, regardless of the working directory. It is usually written in reference to a file system's root directory, for example: /cis/www/academics/mcs/mcs.cfm

Relative path

A relative path is a path relative to the current working directory.

Special symbols

One period, "." references the current working directory. Two periods, ".." references the parent directory above the working directory.

Examples

Say you're in charge of the Smash Club website whose URL is http://www.gustavus.edu/orgs/smashclub.

/cis/www/test/index.cfm

For example, if your working directory were /cis/www/academics/mcs/, you could reference the mcs.cfm file without needing to supply any further information about the parent directories.

See also

Contact us

Please contact the Technology Helpline at 507-933-6111, stop by the Technology Services department in Olin Hall or complete our contact form.