Path (computing) - Representations of Paths By Operating System and Shell

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.TXT
A:PICTURE.JPG
\\SERVER01\USER\DOCS\LETTER.TXT
OS/2 cmd.exe \ / or \ . .. C:\user\docs\Letter.txt

A:Picture.jpg

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.txt
A: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

UserDocs:/Letter.txt
Variable:PSVersionTable
Registry::HKEY_LOCAL_MACHINE\SOFTWARE\
Microsoft.PowerShell.Security\Certificate::CurrentUser\

TOPS-20 DCL . PS:LETTER.TXT,4
RSX-11 DCL DR0:LETTER.TXT;4
OpenVMS DCL or

]:::

. SYS$SYSDEVICE:PHOTO.JPG

GEIN::LETTER.TXT;4

Classic Mac OS : : : :: Macintosh HD:Documents:Letter
:fileincurrentdir
::fileinparent
:::fileingrandparent
ProDOS AppleSoft BASIC // / /SCHOOL.DISK/APPLEWORKS/MY.REPORT

FLIGHT.SIMULATOR,D2

AmigaOS Amiga CLI / AmigaShell : / . / Workbench:Utilities/MultiView
DF0:S/Startup-Sequence
S:Startup-Sequence
TCP: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.Letter
Net#MainServer::DataDrive.$.Main.sy10823
LanMan::WindowsC.$.Pictures.Japan/gif
NFS:&.!Choices
ADFS:%.IfThere
@.inthisdir
^.^.greatgrandparent


When filesystems with filename extensions are mounted, '.' characters are changed to '/', as in the Japan/gif example above.

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

\NODE.$DEVICE

\NODE.$DEVICE.#SUBDEV.QUALIFIER

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:

    These marbles, the works of the dreamers and idealists of old, live on, leading and pointing to good. They are the works of visionaries and dreamers, but they are realizations of soul, the representations of the ideal. They are grand, beautiful, and true, and they speak with a voice that echoes through the ages. Governments have changed; empires have fallen; nations have passed away; but these mute marbles remain—the oracles of time, the perfection of art.
    Herman Melville (1819–1891)

    Now the hungry lion roars,
    And the wolf behowls the moon;
    Whilst the heavy ploughman snores,
    All with weary task fordone.
    Now the wasted brands do glow,
    Whilst the screech-owl, screeching loud,
    Puts the wretch that lies in woe
    In remembrance of a shroud.
    Now it is the time of night,
    That the graves, all gaping wide,
    Every one lets forth his sprite,
    In the church-way paths to glide:
    William Shakespeare (1564–1616)

    Go on then in doing with your pen what in other times was done with the sword; shew that reformation is more practicable by operating on the mind than on the body of man.
    Thomas Jefferson (1743–1826)

    ... in America ... children are instructed in the virtues of the system they live under, as though history had achieved a happy ending in American civics.
    Mary McCarthy (1912–1989)

    I seem to have been only like a boy playing on the seashore, and diverting myself in now and then finding a smoother pebble or a prettier shell than ordinary, whilst the great ocean of truth lay all undiscovered before me.
    Isaac Newton (1642–1727)