Share on Facebook Share on Twitter Email
Answers.com

path

 
Dictionary: path   (păth, päth) pronunciation
n., pl., paths (păTHz, päTHz, păths, päths).
  1. A trodden track or way.
  2. A road, way, or track made for a particular purpose: a bicycle path.
  3. The route or course along which something travels or moves: the path of a hurricane.
  4. A course of action or conduct: the path of righteousness.
  5. Computer Science.
    1. A sequence of commands or a link between points that is needed to reach a particular goal.
    2. A pathname.

[Middle English, from Old English pæth.]


Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics

(1) In communications, the route between any two nodes. Same as "line," "channel," "link" or "circuit."

(2) In database management, the route from one set of data to another; for example, from customers to orders.

(3) A selected line or area in an image. See clipping path.

(4) The route to a file on a disk. In Windows, DOS and OS/2, the path to the MYLIFE file located in the STORIES subfolder within the JOE folder on drive C: would be expressed as follows. Backslashes are used as separators.

            c:\joe\stories\mylife

The equivalent path in the Unix system follows. This is the same for Linux and the Mac, starting with Mac OS X. Unix knows which drive is used. Regular slashes (forward slashes) are used as separators.

            /joe/stories/mylife

Prior to the Unix-based Mac OS X operating system, the Mac could also use a path in certain command sequences. For example, with "hard disk" as the drive, the equivalent path is:

            hard disk:joe:stories:mylife

Using Paths

Managing your computer requires a knowledge of paths, and there are numerous instances where you use them. For example, in the Windows version of this encyclopedia, there is a dialog box that displays the path to the location of the CDETEXT.TXT file. For more details on the Windows path and folder hierarchy, see Win Folder organization.

CDETEXT.TXT Path
This encyclopedia dialog box (File/CDETEXT.TXT path) shows where CDETEXT.TXT is created. The file is used to accumulate multiple definitions so they can be printed all at once. For example, you might use this dialog box to change the path to your word processing folder.

File/Folder Hierarchy
These Explorer views of the Encyclopedia folder (CDE) show how the PICTURES subfolder branches off the CDE folder. Just as pictures are kept separate, the lesson lists are also stored in their own subfolder. Note that the ADDRESS field refers to the path.

Download Computer Desktop Encyclopedia to your iPhone/iTouch

The hierarchical description of where a computer directory (folder) or file is located on your computer or on a Network.

Thesaurus: path
Top
Antonyms: path
Top

n

Definition: course, way
Antonyms: blockage


Hacker Slang: path
Top

1. A bang path or explicitly routed Internet address; a node-by-node specification of a link between two machines. Though these are now obsolete as a form of addressing, they still show up in diagnostics and trace headers occasionally (e.g. in NNTP headers).

2. [Unix] A filename, fully specified relative to the root directory (as opposed to relative to the current directory; the latter is sometimes called a relative path). This is also called a pathname.

3. [Unix and MS-DOS/Windows] The search path, an environment variable specifying the directories in which the shell (COMMAND.COM, under MS-DOS) should look for commands. Other, similar constructs abound under Unix (for example, the C preprocessor has a search path it uses in looking for #include files).


Word Tutor: path
Top
pronunciation

IN BRIEF: A line or route along which something travels or moves.

pronunciation Do not follow where the path may lead. Go instead where there is no path and leave a trail. — Ralph Waldo Emerson (1803-1882), American transcendentalist philosopher, essayist and lecturer.

Dream Symbol: Path
Top

A quiet, spiritual walk down an unobstructed, open path signifies clarity of thought and peace of mind. A blocked and twisted path, however, means one needs to give serious attention to the direction one is taking in one's business or personal life. The dream may imply the need for a time-out to consider the outcome and the consequences of the issues at hand.


Wikipedia: Path (computing)
Top

A path, the general form of a filename or of a directory name, specifies a unique location in a file system. A path points to a file system location by following the directory tree hierarchy expressed in a string of characters in which path components, separated by a delimiting character, represent each directory. The delimiting character is most commonly the slash ("/"), the backslash character ("\"), or colon (":"), though some operating systems may use a different delimiter. Paths are used extensively in computer science to represent the directory/file relationships common in modern operating systems, and are essential in the construction of Uniform Resource Locators (URLs).

Systems can use either absolute or relative paths. A full path or absolute path is a path that points to the same location on one file system regardless of the working directory or combined paths. It is usually written in reference to a root directory.

A relative path is a path relative to the working directory of the user or application, so the full absolute path may not need to be given.

Contents

Representations of paths by operating system and shell

Operating System Shell Root Directory Directory Separator Parent Directory Examples
Unix-like OS Unix shell / / .. /home/user/docs/Letter.txt
DOS COMMAND.COM [drive letter]:\ / or \ .. C:\USER\DOCS\LETTER.TXT
A:PICTURE.JPG
OS/2 cmd.exe [drive letter]:\ / or \ .. C:\user\docs\Letter.txt
A:Picture.jpg
Microsoft Windows cmd.exe [drive letter]:/ or [drive letter]:\ note: for CD command, / treated as relative path (same as [drive letter]:.\) / or \ note: for CD command, / treated as relative path (same as .\) .. C:\user\docs\Letter.txt
A:Picture.jpg
Microsoft Windows Windows PowerShell [drive name]:/ or [drive name]:\ or

[PSSnapIn name]\[PSProvider name]::[PSDrive root]

/ or \ .. C:\user\docs\Letter.txt
UserDocs:/Letter.txt
Variable:PSVersionTable
Registry::HKEY_LOCAL_MACHINE\SOFTWARE\
Microsoft.PowerShell.Security\Certificate::CurrentUser\
TOPS-20 DCL [device name]: . PS:<USER.DOCS>LETTER.TXT,4
RSX-11 DCL [device name]: DR0:[30,12]LETTER.TXT;4
OpenVMS DCL [device name]: or

[NODE"accountname password"]::[device name]:

. [-] SYS$SYSDEVICE:[USER.DOCS]LETTER.TXT;4
Classic Mac OS [drive name]: :
AmigaOS Amiga CLI / AmigaShell [drive, volume or assign name]: / /
RISC OS Task window [fs type]::[drive number or disc name].$ . ^
Symbian OS File manager \ \ \user\docs\Letter.txt
Domain/OS Shell // /
MenuetOS/KolibriOS CMD / /
Stratus VOS VOS command-line interpreter %[system_name]#[module_name]> > <

Japanese and Korean versions of Windows may often display the '¥' character or the '' character instead of the path separator. In such cases the code for a backslash is being drawn as these characters. Very early versions of MS-DOS replaced the backslash with these glyphs on the display to make it possible to display them by programs that only understood 7-bit ASCII (other characters such as the square brackets were replaced as well, see ISO 646, Windows Codepage 932 (Japanese Shift JIS), and Codepage 949 (Korean)). This predates the addition of paths in MS-DOS 2 and is a good indication that Microsoft never intended backslash to be the path separator, as a normal slash would display correctly. Although even the first version of Windows supported the 8-bit ISO-8859-1 character set which has the Yen sign at U+00A5, and modern versions of Windows supports Unicode which has the Won sign at U+20A9, much software will continue to display backslashes found in ASCII files this way to preserve backwards compatibility.

Mac OS X, as a derivative of UNIX, uses UNIX paths internally. However, to preserve compatibility for software and familiarity for users, many portions of the GUI switch "/" typed by the user to ":" internally, and switch them back when displaying filenames (a ":" entered by the user is also changed into "/" but the inverse translation does not happen).

Uniform Naming Convention

The Microsoft Windows UNC, short for Universal Naming Convention or Uniform Naming Convention, specifies a common syntax to describe the location of a network resource, such as a shared file, directory, or printer. The UNC syntax for Windows systems has the generic form:

\\ComputerName\SharedFolder\Resource

Note: The UNC syntax sometimes appears written with forward slashes. Microsoft Windows treats forward slashes and back slashes as equivalent, but many programs will accept only backward slashes, and some will only accept double backslashes (i.e. \\\\ComputerName\\SharedFolder), especially in quoted string constants, due to the standard use of backslash as an escape character.

The "SharedFolder" does not necessarily have the same name when viewed remotely as what a program on the server would see if it tried to open "\SharedFolder". Instead, the SharedFolder name consists of an arbitrary name assigned to the folder when defining its "sharing".

Some Microsoft Windows interfaces also accept the "Long UNC":

\\?\UNC\ComputerName\SharedFolder\Resource

Microsoft Windows uses the following types of paths:

  • local file system (LFS), such as C:\File,
  • uniform naming convention (UNC), such as \\Server\Volume\File,
  • Long UNC or UNCW, such as \\?\C:\File or \\?\UNC\Server\Volume\File.

In earlier[when?] versions of Windows only the APIs that accept "Long UNC" could accept more than 260 characters.

Posix pathname definition

Unix-like systems occasionally use a similar syntax.[1] POSIX allows treating a path beginning with two slashes in an implementation-defined manner,[2] though in other cases systems must treat multiple slashes as single slashes.[3] Many applications on Unix-like systems (for example, scp, rcp and rsync) use resource definitions such as:

hostname:/directorypath/resource

or like URLs with the service name (here 'smb'):

smb://hostname/directorypath/resource

Example

Unix style

The following worked example discusses the behavior of a Unix-style file system as it would appear from a terminal or terminal application (command-line window):

Attached to a current working directory (cwd) of:

/users/mark/

You want to change your current working directory to:

/users/mark/bobapples

At that moment, we can represent the relative path for the directory you want as:

./bobapples

or for short:

bobapples

and the absolute path for the directory as:

/users/mark/bobapples

Given bobapples as the relative path for the directory you want, you may type the following at the command prompt to change your current working directory to bobapples:

cd bobapples

Two dots ("..") point upwards in the hierarchy, to indicate the parent directory; one dot (".") represents the current directory itself. Both can be components of a complex relative path (e.g., "../mark/./bobapples"), where "." alone or as the first component of such a relative path represents the working directory. (Using "./foo" to refer to a file "foo" in the current working directory can sometimes usefully distinguish it from a resource "foo" to be found in a default directory or by other means; for example, to view a specific version of a man page instead of the one installed in the system.)

MS-DOS/Microsoft Windows style

Screenshot of a Windows command shell showing filenames in a directory

Contrary to popular belief, the Windows system API accepts forward slash, and thus all the above Unix examples should work. But many applications on Windows interpret a slash for other purposes or treat it as an invalid character, and thus require you to enter backslash — notably the cmd.exe shell (often called the "terminal" as it typically runs in a terminal window). Note that many other shells available for Windows, such as tcsh and Windows PowerShell, allow the forward slash.

In addition "\" does not indicate a single root, but instead the root of the "current disk". Indicating a file on a disk other than the current one requires prefixing a drive letter and colon. No ambiguity ensues, because colon is not a valid character in an MS-DOS filename, and thus one cannot have a file called "A:" in the current directory.

The following examples show MS-DOS/Windows-style paths, with backslashes used to match the most common syntax:

A:\Temp\File.txt

This path points to a file with the name File.txt, located in the directory Temp, which in turn is located in the root directory of the drive A:.

C:..\File.txt

This path refers to a file called File.txt located in the parent directory of the current directory on drive C:.

Folder\SubFolder\File.txt

This path denotes a file called File.txt located in SubFolder directory which in turn is located in Folder directory which is located in the current directory of the current drive (since this example gives no drive-specification).

File.txt

This rather simple path points to a file named File.txt located in the current directory (since the path lacks a directory-specification) on the current drive (since no drive specification is present).

\\.\COM1

This path refers to the first serial port (COM1).

C:\>more < C:/Windows/system.ini
; for 16-bit app support
[386Enh]
woafont=dosapp.fon
EGA80WOA.FON=EGA80WOA.FON
EGA40WOA.FON=EGA40WOA.FON
CGA80WOA.FON=CGA80WOA.FON
CGA40WOA.FON=CGA40WOA.FON
...

This example uses a path containing forward slashes as directory separator. The command redirects the content of the file to the more command.

E:\>dir "/Folder/SubFolder/" /Q
Volume in drive E is Data
Volume Serial Number is 07BE-0B10

Directory of E:\Folder\SubFolder

10/18/2008 08:15 AM <DIR> DOMAIN\user .
10/18/2008 08:15 AM <DIR> DOMAIN\user ..
10/18/2008 08:15 AM <DIR> DOMAIN\user File.txt
1 File(s) 8 bytes
2 Dir(s) 19,063,000 bytes free

A path containing forward slashes often needs to be surrounded by double quotes to disambiguate it from command line switches.

  • note: CD does not work this way:

CD "[drive letter]:/Program Files" will only work from the root ([drive letter]:\) directory. This appears to treat all forward slashes the same as .\.

For example:

CD "C:.\Program Files"

works the same as

CD "C:/Program Files"

Also, from a root folder:

CD "C:.\Program Files.\Internet Explorer"

would be treated the same as

CD "C:/Program Files/Internet Explorer"

If there is no relative path to the directory name specified with forward slashes you will get the following error:

The system cannot find the path specified.

See also

References

This article was originally based on material from the Free On-line Dictionary of Computing, which is licensed under the GFDL.

External links


Translations: Path
Top

Dansk (Danish)
n. - sti, bane, gennemløb

idioms:

  • path of least resistance    den nemmeste vej

Nederlands (Dutch)
pad, baan, verloop, serie handelingen

Français (French)
n. - chemin, sentier, allée, trajectoire, cours, passage (d'un ouragan), voie, route

idioms:

  • path of least resistance    (choisir) la voie de la facilité

Deutsch (German)
n. - Weg, Bahn, Pfad

idioms:

  • path of least resistance    Weg des geringsten Widerstandes

Ελληνική (Greek)
n. - ατραπός, μονοπάτι, δρομάκος, διαδρομή, πορεία, γραμμή, (αστρον.) τροχιά (ουράνιου σώματος)
abbr. - -παθής

idioms:

  • path of least resistance    οδός της ήσσονος αντιστάσεως, εύκολος δρόμος

Italiano (Italian)
corso, traiettoria, viottolo, sentiero, camminamento

idioms:

  • cross someone's path    imbattersi in qualcuno

Português (Portuguese)
n. - caminho (m), calçada (f), picada (f), rota (f), linha de conduta (f)
abbr. - patologia

idioms:

  • cross someone's path    encontrar/conhecer por acaso

Русский (Russian)
путь, дорога

idioms:

  • cross someone's path    перейти кому-либо дорогу

Español (Spanish)
n. - curso, trayectoria, vía, pista, camino, ruta, senda, sendero, callejón, acera, vereda

idioms:

  • path of least resistance    seguir la ley del mínimo esfuerzo, optar por lo más fácil

Svenska (Swedish)
n. - väg, stig, bana
abbr. - pathologic

中文(简体)(Chinese (Simplified))
小径, 小路, 路线, 轨道, 通路, 途径, 道路

idioms:

  • path of least resistance    最省力的办法

中文(繁體)(Chinese (Traditional))
n. - 小徑, 小路, 路線, 軌道, 通路, 途徑, 道路

idioms:

  • path of least resistance    最省力的辦法

한국어 (Korean)
n. - 길, 행로, (컴퓨터) 경로

日本語 (Japanese)
n. - 小道, 細い散歩道, 通り道, 進路, 方針

العربيه (Arabic)
‏(الاسم) طريق, سبيل, مسير, مسار (اختصار) إختصار لكلمه : باثولوجيا Pathology‏

עברית (Hebrew)
n. - ‮שביל, נתיב, מסלול, דרך, מסלול פעולה או התנהגות‬


Best of the Web: path
Top

Some good "path" pages on the web:


Math
mathworld.wolfram.com
 
 
 
Learn More
Weltman, Phil (Quotes By)
Maxim, Legal (Quotes By)
pipe run

Post a question - any question - to the WikiAnswers community:

 

Copyrights:

Dictionary. The American Heritage® Dictionary of the English Language, Fourth Edition Copyright © 2007, 2000 by Houghton Mifflin Company. Updated in 2009. Published by Houghton Mifflin Company. All rights reserved.  Read more
Computer Desktop Encyclopedia. THIS COPYRIGHTED DEFINITION IS FOR PERSONAL USE ONLY.
All other reproduction is strictly prohibited without permission from the publisher.
© 1981-2009 Computer Language Company Inc.  All rights reserved.  Read more
Business Dictionary. Dictionary of Business Terms. Copyright © 2000 by Barron's Educational Series, Inc. All rights reserved.  Read more
Thesaurus. Roget's II: The New Thesaurus, Third Edition by the Editors of the American Heritage® Dictionary Copyright © 1995 by Houghton Mifflin Company. Published by Houghton Mifflin Company. All rights reserved.  Read more
Answers Corporation Antonyms. © 1999-2009 by Answers Corporation. All rights reserved.  Read more
Hacker Slang. The Jargon File. Copyright © 2007.  Read more
Architecture. McGraw-Hill Dictionary of Architecture and Construction. Copyright © 2003 by McGraw-Hill Companies, Inc. All rights reserved.  Read more
Word Tutor. Copyright © 2004-present by eSpindle Learning, a 501(c) nonprofit organization. All rights reserved.
eSpindle provides personalized spelling and vocabulary tutoring online; free trial Read more
Dream Symbol. The Dreams Encyclopedia. 1995 ©Visible Ink Press. All rights reserved.  Read more
Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Path (computing)" Read more
Translations. Copyright © 2007, WizCom Technologies Ltd. All rights reserved.  Read more