Representations of Paths By Operating System and Shell
| Operating System | Shell | Root Directory | Directory Separator | Current Directory | Parent Directory | Home Directory | Examples |
|---|---|---|---|---|---|---|---|
| Unix-like OS | Unix shell | / |
/ |
. |
.. |
~ |
/home/user/docs/Letter.txt./inthisdir../../greatgrandparent~/.rcinfo |
| DOS | COMMAND.COM | \ or\\\ |
/ or \ (note: command.com does not treat / as a directory separator) |
. |
.. |
C:\USER\DOCS\LETTER.TXTA:PICTURE.JPG\\SERVER01\USER\DOCS\LETTER.TXT |
|
| OS/2 | cmd.exe | \ |
/ or \ |
. |
.. |
C:\user\docs\Letter.txt
|
|
| Microsoft Windows | cmd.exe | / or\ or\\\note: for CD command, / treated as relative path (same as .\) |
/ or \ (note: for CD command, / treated as relative path (same as .\)) |
. |
.. |
C:\user\docs\Letter.txtA:Picture.jpg\\Server01\user\docs\Letter.txt |
|
| Microsoft Windows | Windows PowerShell | / or \or\\\ or
|
/ or \ |
. |
.. |
C:\user\docs\Letter.txt\\Server01\user\docs\Letter.txt
|
|
| TOPS-20 | DCL | |
. |
PS: |
|||
| RSX-11 | DCL | |
DR0:LETTER.TXT;4 |
||||
| OpenVMS | DCL | or
|
. |
|
SYS$SYSDEVICE:PHOTO.JPG
|
||
| Classic Mac OS | : |
: |
: |
:: |
Macintosh HD:Documents:Letter:fileincurrentdir::fileinparent:::fileingrandparent |
||
| ProDOS | AppleSoft BASIC | // |
/ |
/SCHOOL.DISK/APPLEWORKS/MY.REPORT
|
|||
| AmigaOS | Amiga CLI / AmigaShell | : |
/ |
. |
/ |
Workbench:Utilities/MultiViewDF0:S/Startup-SequenceS:Startup-SequenceTCP:en.wikipedia.com/80 |
|
| RISC OS | Task window | :]$
note: &, % and @ can also be used to reference the root of the current user, the library and the current (working) directory respectively. |
. |
@ |
^ |
& |
ADFS::MyDrive.$.Documents.LetterNet#MainServer::DataDrive.$.Main.sy10823LanMan::WindowsC.$.Pictures.Japan/gifNFS:&.!ChoicesADFS:%.IfThere@.inthisdir^.^.greatgrandparent
|
| Symbian OS | File manager | \ |
\ |
\user\docs\Letter.txt |
|||
| Domain/OS | Shell | // |
/ |
||||
| MenuetOS | CMD | / |
/ |
||||
| Stratus VOS | VOS command-line interpreter | %#> |
> |
< |
|||
| NonStop Kernel | TACL Tandem Advanced Command Language | No root | . |
No parent directory | \NODE.$DISK.SUBVOL.FILE
|
||
| CP/M | CCP | |
no subdirectories | no subdirectories | no parent | no subdirectories | A:LETTER.TXT |
Japanese and Korean versions of Windows may often display the '¥' character or the '₩' character instead of the directory 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)). 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).
Read more about this topic: Path (computing)
Famous quotes containing the words representations of, paths, operating, system and/or shell:
“Dreams are distorted representations of desire. So are dream- analyses.”
—Mason Cooley (b. 1927)
“This is the one of whom the prophet Isaiah spoke when he said, The voice of one crying out in the wilderness: Prepare the way of the Lord, make his paths straight. ”
—Bible: New Testament, Matthew 3:3.
“I think there are innumerable gods. What we on earth call God is a little tribal God who has made an awful mess. Certainly forces operating through human consciousness control events.”
—William Burroughs (b. 1914)
“Our system of government, in spite of Vietnam, Cambodia, CIA, Watergate, is still the best system of government on earth. And the greatest resource of all are the 215 million Americans who still have within us the strength, the character, the intelligence, the experience, the patriotism, the idealism, the compassion, the sense of brotherhood on which we can rely in the future to restore the greatness to our country.”
—Jimmy Carter (James Earl Carter, Jr.)
“How then can we account for the persistence of the myth that inside the empty nest lives a shattered and depressed shell of a womana woman in constant pain because her children no longer live under her roof? Is it possible that a notion so pervasive is, in fact, just a myth?”
—Lillian Breslow Rubin (20th century)