Relative and absolute path names


To understand about about using absolute and relative URLs, it is important to first understand about relative and absolute path names.

Absolute pathname
Something which identifies a file or a directory irrespective of the current state of the user or the user's program. The user's "current directory" is part of the user's state.

Examples

  • /usr/local/lib/
  • D:\GAMES\DOOM
Relative pathname
Something which identifies a file or a directory in a way that depends on the state of the user or program, usually depending on the program's (or user's) "current directory".

Examples

  • paper.doc
  • thesis/chapter4.tex
  • ..\DATA\RUN1.DAT
  • ..\..\GAMES\DOOM
  • NETSCAPE.INI
Note: The above definitions are not technically correct, and there are things that are not covered.

previous contents next

Jeff Goldberg