<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=Path_%28computing%29</id>
	<title>Path (computing) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=Path_%28computing%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Path_(computing)&amp;action=history"/>
	<updated>2026-06-23T19:39:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.sarg.dev/index.php?title=Path_(computing)&amp;diff=252228&amp;oldid=prev</id>
		<title>imported&gt;WhoAteMyButter: /* Universal Naming Convention */ avoid confusing placeholders -- concrete</title>
		<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Path_(computing)&amp;diff=252228&amp;oldid=prev"/>
		<updated>2025-11-02T20:38:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Universal Naming Convention: &lt;/span&gt; avoid confusing placeholders -- concrete&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Text that identifies an item in a computer file system}}&lt;br /&gt;
{{Use dmy dates|date=March 2020}}&lt;br /&gt;
{{For|the environment variable|PATH (variable)}}&lt;br /&gt;
&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;#039; (or &amp;#039;&amp;#039;&amp;#039;filepath&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;file path&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;pathname&amp;#039;&amp;#039;&amp;#039;, or similar) is a [[string (computer science)|string]] that uniquely identifies an item in a [[hierarchical file system]]. Generally, a path is composed of directory names, special format specifiers, and optionally a [[filename]], all separated by [[delimiters]]. This delimiter can vary by operating system, but popular, modern systems use the [[slash (punctuation)|slash]] {{code|/}}, [[backslash]] {{code|\}}, or [[Colon (punctuation)|colon]] {{code|:}}.&lt;br /&gt;
&lt;br /&gt;
The [[case sensitivity|case-sensitivity]] of individual path components will vary based on [[operating system]], or based on options specified at the time of a file system&amp;#039;s [[mkfs|creation]] or [[Mount (computing)|first use]]. In practice, this means that for a &amp;#039;&amp;#039;&amp;#039;case-sensitive&amp;#039;&amp;#039;&amp;#039; system, path components named {{code|component1}} and {{code|Component1}} can coexist at the same level in the hierarchy, whereas for a &amp;#039;&amp;#039;&amp;#039;case-&amp;#039;&amp;#039;in&amp;#039;&amp;#039;sensitive&amp;#039;&amp;#039;&amp;#039; file system, they cannot (an error will occur). macOS and Windows&amp;#039; native file systems are case-insensitive by default, whereas typical Linux file systems are case-sensitive.&amp;lt;ref&amp;gt;{{Cite web |title=File system formats available in Disk Utility on Mac |url=https://support.apple.com/guide/disk-utility/file-system-formats-dsku19ed921c/mac |access-date=2025-09-12 |website=Apple Support |language=en}} Includes a description of [[APFS]], the default file system for macOS&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |last=Matt Wojciakowski |title=Case Sensitivity |url=https://learn.microsoft.com/en-us/windows/wsl/case-sensitivity |access-date=2025-09-12 |website=learn.microsoft.com |language=en-us}} &amp;lt;q&amp;gt;Windows file system treats file and directory names as case-insensitive. FOO.txt and foo.txt will be treated as equivalent files. Linux file system treats file and directory names as case-sensitive. FOO.txt and foo.txt will be treated as distinct files.&amp;lt;/q&amp;gt;&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |last=Day |first=Brittany |title=Understanding the Linux Filesystem Case Sensitivity Debate |url=https://linuxsecurity.com/features/linux-filesystem-case-sensitivity-debate |access-date=2025-09-12 |website=Linux Security |language=en-gb}} &amp;lt;q&amp;gt;Case sensitivity in Linux refers to files and directories recognizing differences between lowercase and uppercase characters in filenames. For instance, &amp;quot;File.txt&amp;quot; and &amp;quot;file.txt&amp;quot; would both be treated as two distinct files. This concept is integral to Unix-like operating systems, including Linux.&amp;lt;/q&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{anchor |relative}}{{anchor |absolute}}A path can be either &amp;#039;&amp;#039;&amp;#039;relative&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;absolute&amp;#039;&amp;#039;&amp;#039;. A relative path is a path in relation to another, most often the [[working directory]]. An absolute path indicates a location regardless of the current directory; that is, it specifies all path components starting from the file system&amp;#039;s [[Root directory|root]], and does not depend on context like a relative path does.&lt;br /&gt;
&lt;br /&gt;
Paths are also essential for locating hierarchically-organized network resources, as seen in [[Uniform resource locator|URLs]] and [[#Universal Naming Convention|UNC paths]].&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
[[Multics]] first introduced a [[hierarchical file system]] with directories (separated by &amp;quot;&amp;gt;&amp;quot;) in the mid-1960s.&amp;lt;ref&amp;gt;{{cite conference |last1=Daley |first1=R.C. |last2=Neumann |first2=P.G. |date=1965 |title=A general-purpose file system for secondary storage |volume=Part I |pages=213–229 |doi=10.1145/1463891.1463915 |doi-access=free |book-title=Proceedings of the November 30--December 1, 1965, fall joint computer conference, Part I on XX - AFIPS &amp;#039;65 (Fall, part I) |s2cid=16236414}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Around 1970, [[Unix]] introduced the slash {{code|/}} as its directory separator.&lt;br /&gt;
&lt;br /&gt;
Originally, [[MS-DOS]] did not support directories. When adding the feature, using the Unix standard of a slash was not a good option since many existing commands used a slash as the [[command-line switch|switch]] prefix (i.e., {{code|dir /w}}). In contrast, Unix uses the dash {{code|-}} as the switch prefix. The backslash {{code|\}} was ultimately chosen instead for its similarity to the slash and not conflicting with existing commands. This convention continued into [[Windows]]. However, some areas of Windows do accept or understand Unix-style slashes also, such as [[PowerShell]].&amp;lt;ref&amp;gt;{{cite web |date=10 February 2014 |title=Why Windows Uses Backslashes and Everything else Uses Forward Slashes |url=https://www.howtogeek.com/181774/why-windows-uses-backslashes-and-everything-else-uses-forward-slashes/}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite web |date=24 June 2005 |title=Why is the DOS path character &amp;quot;\&amp;quot;? |url=https://learn.microsoft.com/archive/blogs/larryosterman/why-is-the-dos-path-character}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Summary of systems ==&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Pathing is more a feature of the file system; not the OS or the shell, but this table focuses on OS and shell :(&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
The following table describes the syntax of paths in notable operating systems:{{Table alignment}}&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed col3center col4center col5center col6center&amp;quot; style=&amp;quot;font-size: 90%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! System&lt;br /&gt;
! Root dir.&lt;br /&gt;
! Path delim.&lt;br /&gt;
! Working dir.&lt;br /&gt;
! Parent dir.&lt;br /&gt;
! Home dir.&lt;br /&gt;
! Examples&lt;br /&gt;
|-&lt;br /&gt;
! [[Unix]] and [[Unix-like]] systems, including [[macOS]]&amp;lt;ref&amp;gt;{{Cite web |date=2018-04-09 |title=File System Basics |url=https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html |access-date=2025-09-07 |website=developer.apple.com}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| {{mono|/}}&lt;br /&gt;
| {{mono|/}}&lt;br /&gt;
| {{mono|.}}&lt;br /&gt;
| {{mono|..}}&lt;br /&gt;
| {{mono|~}}&lt;br /&gt;
| {{mono|/home/user/docs/Letter.txt}}&amp;lt;br&amp;gt;{{mono|./child}}&amp;lt;br&amp;gt;{{mono|../../greatgrandparent}}&amp;lt;br&amp;gt;{{mono|~/.rcinfo}}&lt;br /&gt;
|-&lt;br /&gt;
! [[Microsoft Windows|Windows]], [[Command Prompt]]&lt;br /&gt;
| {{mono|\}} (relative to current working directory root)&amp;lt;br&amp;gt;or {{mono|[drive letter]:\}}&amp;lt;br&amp;gt;or {{Mono|\\.\}}&amp;lt;br&amp;gt;or {{Mono|\\?\}}&amp;lt;br&amp;gt;or UNC&lt;br /&gt;
| {{mono|/}}{{efn|name=&amp;quot;windows-fslash&amp;quot;|Limited compatibility, may not work in all Windows programs}}&amp;lt;br&amp;gt;or {{mono|\}}&lt;br /&gt;
| {{mono|.}}&lt;br /&gt;
| {{mono|..}}&lt;br /&gt;
|&lt;br /&gt;
| {{mono|C:\user\docs\Letter.txt}}&amp;lt;br&amp;gt;{{mono|/user/docs/Letter.txt}}{{mono|C:\user\docs\somefile.ext:[[NTFS#Alternate data stream (ADS)|alternate stream name]]}}&lt;br /&gt;
{{Mono|C:picture.jpg}}&amp;lt;br&amp;gt;{{mono|\\?\UNC\Server01\user\docs\Letter.txt}}&amp;lt;br&amp;gt;{{Mono|\\.\COM1}}&lt;br /&gt;
|-&lt;br /&gt;
! [[PowerShell]]&lt;br /&gt;
| {{mono|[drive letter]:/}}&amp;lt;br&amp;gt;or {{mono|[drive name]:\}}&amp;lt;br&amp;gt;or {{mono|[PSSnapIn name]\[PSProvider name]::[PSDrive root]}}&amp;lt;br&amp;gt;or UNC&lt;br /&gt;
| {{mono|/}}{{efn|name=&amp;quot;windows-fslash&amp;quot;}}&amp;lt;br&amp;gt;or {{mono|\}}&lt;br /&gt;
| {{mono|.}}&lt;br /&gt;
| {{mono|..}}&lt;br /&gt;
| {{mono|~}}&lt;br /&gt;
| {{mono|C:\user\docs\Letter.txt}}&amp;lt;br&amp;gt;{{mono|~\Desktop}}{{mono|UserDocs:/Letter.txt}}&amp;lt;br&amp;gt;{{mono|Variable:PSVersionTable}}&amp;lt;br&amp;gt;{{mono|Registry::HKEY_LOCAL_MACHINE\SOFTWARE\}}&amp;lt;br&amp;gt;{{mono|Microsoft.PowerShell.Security\Certificate::CurrentUser\}}&lt;br /&gt;
|-&lt;br /&gt;
![[Path (computing)#Universal Naming Convention|UNC]]&amp;lt;ref&amp;gt;{{Cite web |title=UNC Network Share Access (Windows) |url=https://www.ibm.com/docs/en/iodg/11.3.0?topic=credentials-unc-network-share-access-windows |access-date=2025-09-07 |website=www.ibm.com |language=en-us}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|{{mono|\\[server]\[sharename]\}}&lt;br /&gt;
|{{Mono|/}}&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|{{mono|\\Server01\user\docs\Letter.txt}}&lt;br /&gt;
|-&lt;br /&gt;
! [[DOS]], [[COMMAND.COM]]&lt;br /&gt;
| {{mono|[drive letter]:\}}&amp;lt;br&amp;gt;or {{mono|\\[server name]\[volume]\}}&lt;br /&gt;
| {{mono|\}}&lt;br /&gt;
| {{mono|.}}&lt;br /&gt;
| {{mono|..}}&lt;br /&gt;
| &lt;br /&gt;
| {{mono|C:\USER\DOCS\LETTER.TXT}}&amp;lt;br&amp;gt;{{mono|A:PICTURE.JPG}}&amp;lt;br&amp;gt;{{mono|\\SERVER01\USER\DOCS\LETTER.TXT}}&lt;br /&gt;
|-&lt;br /&gt;
! [[OS/2]]&lt;br /&gt;
| {{mono|[drive letter]:\}}&amp;lt;br&amp;gt;or {{mono|\\[server name]\[volume]\}}&lt;br /&gt;
| {{mono|/}}&amp;lt;br&amp;gt;or {{mono|\}}&lt;br /&gt;
| {{mono|.}}&lt;br /&gt;
| {{mono|..}}&lt;br /&gt;
| &lt;br /&gt;
| {{mono|C:\user\docs\Letter.txt}}&amp;lt;br&amp;gt;{{mono|A:Picture.jpg}}&amp;lt;br&amp;gt;{{mono|\\SERVER01\USER\docs\Letter.txt}}&lt;br /&gt;
|-&lt;br /&gt;
! [[RSX-11]] MCR&amp;lt;ref&amp;gt;{{Cite book |title=RSX-11M-PLUS MCR Operations Manual |date=August 1987 |publisher=[[Digital Equipment Corporation]] |edition=4th |pages=26-31}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| {{mono|[device name]:}}&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
| {{mono|DR0:[30,12]LETTER.TXT;4}}{{efn|In order, the fields are {{code|ddnn:[g,m]:filename.type;version}}}}&lt;br /&gt;
|-&lt;br /&gt;
! [[TOPS-20]] [[DIGITAL Command Language|DCL]]&amp;lt;ref&amp;gt;{{Cite tech report |url=https://apps.dtic.mil/sti/html/tr/ADA163675/index.html |title=Defense Data Network/TOPS-20 Tutorial. An Interative Computer Program. |last=Herkert |first=Mark Klause Herman |last2=Smith |first2=Sheri Lynn |date=December 1985 |format=PDF}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| {{mono|[device name]:}}&lt;br /&gt;
| {{mono|.}}&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| {{mono|PS:&amp;lt;USER.DOCS&amp;gt;LETTER.TXT,4}}&lt;br /&gt;
|-&lt;br /&gt;
! [[OpenVMS]] [[DIGITAL Command Language|DCL]]&amp;lt;ref&amp;gt;{{Cite web |last=Rabe |first=Bernhard |date=2011-06-06 |title=OpenVMS &amp;amp; DCL on Alpha &amp;amp; VAX |url=https://osm.hpi.de/serveros/2011/OpenVMS/uebung/OpenVMS-DCL.pdf}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |date=2025 |title=VSI OpenVMS User&amp;#039;s Manual |url=https://docs.vmssoftware.com/docs/vsi-openvms-user-s-manual.pdf |access-date=2025-09-07 |website=VMS Software}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| {{mono|[device name]:[000000]}}&amp;lt;br&amp;gt;or {{mono|&amp;lt;nowiki&amp;gt;[NODE[&amp;quot;accountname password&amp;quot;]]::[device name][000000]:&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
| {{mono|.}}&lt;br /&gt;
| {{mono|[]}}&lt;br /&gt;
| {{mono|[-]}}&lt;br /&gt;
| &amp;lt;small&amp;gt;{{mono|SYS$LOGIN:}}&amp;lt;/small&amp;gt;&lt;br /&gt;
| {{mono|NODE$DISK:[USER.DOCS]PHOTO.JPG}}{{Mono|USER:[000000]000000.DIR}}{{mono|[]IN_THIS_DIR.COM;}}&amp;lt;br&amp;gt;{{mono|[-.-]GreatGrandParent.TXT}}&amp;lt;br&amp;gt;{{mono|SYS$SYSDEVICE:[.DRAFTS]LETTER.TXT;4}}&amp;lt;br&amp;gt;{{mono|GEIN::[000000]LETTER.TXT;4}}&amp;lt;br&amp;gt;{{mono|SYS$LOGIN:LOGIN.COM}}&lt;br /&gt;
|-&lt;br /&gt;
! [[Apple ProDOS|ProDOS]] AppleSoft BASIC&amp;lt;ref&amp;gt;{{Cite book |title=ProDOS User&amp;#039;s Manual |publisher=[[Apple Computer]] |year=1983 |pages=56-62}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| {{mono|/[volume or drive name]/}}&lt;br /&gt;
| {{mono|/}}&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
| {{mono|/SCHOOL.DISK/APPLEWORKS/MY.REPORT}}{{mono|FLIGHT.SIMULATOR,D2}}&lt;br /&gt;
|-&lt;br /&gt;
! [[AmigaOS]] Amiga CLI / AmigaShell&amp;lt;ref&amp;gt;{{Cite book |title=The AmigaDOS Manual |date=February 1986 |publisher=Bantam Computer Books |others=Produced by Commodore-Amiga, Inc. |isbn=978-0-553-34294-9 |pages=6-16}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| {{mono|[drive, volume, device, or assign name]:}}&lt;br /&gt;
| {{mono|/}}&lt;br /&gt;
| &amp;#039;&amp;#039;empty string&amp;#039;&amp;#039;&lt;br /&gt;
| {{mono|/}}&lt;br /&gt;
|&lt;br /&gt;
| {{mono|Workbench:Utilities/MultiView}}&amp;lt;br&amp;gt;{{mono|DF0:S/Startup-Sequence}}&amp;lt;br&amp;gt;{{mono|S:Startup-Sequence}}&amp;lt;br&amp;gt;{{mono|TCP:en.wikipedia.com/80}}&lt;br /&gt;
|-&lt;br /&gt;
! [[RISC OS]] ShellCLI&amp;lt;ref&amp;gt;{{Cite web |date=2015-11-03 |title=RISC OS PRMs: Volume 2: Chapter 44: Writing a filing system |url=http://www.riscos.com/support/developers/prm/writefs.html |access-date=2025-09-07 |website=www.riscos.com Technical Support: Programmer&amp;#039;s Reference Manual |publisher=3QD Developments Ltd.}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| {{mono|[fs type[#option]:][:drive number or disc name.]$}}{{efn|{{code|&amp;amp;}}, {{code|%}}, and {{code|@}} can also be used to reference the root of the current user, the library, and the current directory respectively}}&lt;br /&gt;
| {{mono|.}}&lt;br /&gt;
| {{mono|@}}&lt;br /&gt;
| {{mono|^}}&lt;br /&gt;
| {{mono|&amp;amp;}}&lt;br /&gt;
| {{mono|ADFS::MyDrive.$.Documents.Letter}}&amp;lt;br&amp;gt;{{mono|Net#MainServer::DataDrive.$.Main.sy10823}}&amp;lt;br&amp;gt;{{mono|LanMan::WindowsC.$.Pictures.Japan/gif}}&amp;lt;br&amp;gt;{{mono|NFS:&amp;amp;.!Choices}}&amp;lt;br&amp;gt;{{mono|ADFS:%.IfThere}}&amp;lt;br&amp;gt;{{mono|@.inthisdir}}&amp;lt;br&amp;gt;{{mono|^.^.greatgrandparent}}{{efn|When filesystems with filename extensions are mounted, {{code|.}} characters are changed to {{code|/}}, as in the {{mono|Japan/gif}} example above}}&lt;br /&gt;
|-&lt;br /&gt;
! [[Symbian OS]] File manager&lt;br /&gt;
| {{mono|\}}&lt;br /&gt;
| {{mono|\}}&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| {{mono|\user\docs\Letter.txt}}&lt;br /&gt;
|-&lt;br /&gt;
! [[Domain/OS]] Shell&amp;lt;ref&amp;gt;{{Cite book |title=Getting Started with Domain/OS |date=May 1988 |publisher=[[Apollo Computer]] |pages=7.1-7.7}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| {{mono|//}} (root of domain)&amp;lt;br&amp;gt;or {{mono|/}} (root of current node)&lt;br /&gt;
| {{mono|/}}&lt;br /&gt;
| {{mono|.}}&lt;br /&gt;
| {{mono|\}}&lt;br /&gt;
| {{mono|~}}&lt;br /&gt;
| {{mono|//node/home/user/docs/Letter.txt}}&amp;lt;br&amp;gt;{{mono|./inthisdir}}&amp;lt;br&amp;gt;{{mono|\\greatgrandparent}}&amp;lt;br&amp;gt;{{mono|~rcinfo}}&lt;br /&gt;
|-&lt;br /&gt;
! [[MenuetOS]] CMD&lt;br /&gt;
| {{mono|/}}&lt;br /&gt;
| {{mono|/}}&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|{{Mono|/file}}&lt;br /&gt;
|-&lt;br /&gt;
! [[Stratus VOS]] CLI&lt;br /&gt;
| {{mono|%[system_name]#[module_name]&amp;gt;}}&lt;br /&gt;
| {{mono|&amp;amp;gt;}}&lt;br /&gt;
| &lt;br /&gt;
| {{mono|&amp;amp;lt;}}&lt;br /&gt;
| &lt;br /&gt;
|{{mono|%sysname#module1&amp;gt;SubDir&amp;gt;AnotherDir}}&lt;br /&gt;
|-&lt;br /&gt;
! [[NonStop Kernel|NonStop&amp;lt;br&amp;gt;Kernel]] TACL{{efn|Short for &amp;#039;&amp;#039;Tandem Advanced Command Language&amp;#039;&amp;#039;}}&lt;br /&gt;
|&lt;br /&gt;
| {{mono|.}}&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| &lt;br /&gt;
| {{mono|\NODE.$DISK.SUBVOL.FILE}}&amp;lt;br&amp;gt;{{mono|\NODE.$DEVICE}}&amp;lt;br&amp;gt;{{mono|\NODE.$DEVICE.#SUBDEV.QUALIFIER}}&lt;br /&gt;
|-&lt;br /&gt;
! [[CP/M]] [[Console Command Processor|CCP]]&amp;lt;ref&amp;gt;{{Cite book |title=CP/M Operating System Manual |date=September 1983 |publisher=[[Digital Research]] |edition=3rd}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| {{mono|[drive letter:]}}&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; |&amp;#039;&amp;#039;no subdirectories, only user areas 0–F&amp;#039;&amp;#039;&lt;br /&gt;
|{{mono|A:LETTER.TXT}}&lt;br /&gt;
|-&lt;br /&gt;
! [[Apple GS/OS|GS/OS]]&lt;br /&gt;
| {{mono|:[volume name]:}}&amp;lt;br&amp;gt;or{{mono|.[device name]:}}&amp;lt;br&amp;gt;or {{mono|[prefix]:}}{{efn|{{code|[prefix]}} may be a number (0–31),  {{code|*}} (boot volume) or {{code|@}} (AppleShare home directory)}}&lt;br /&gt;
| {{mono|:}}&amp;lt;br&amp;gt;or {{mono|/}}&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| {{mono|@}}&lt;br /&gt;
| {{mono|:Apps:Platinum.Paint:Platinum.Paint}}&amp;lt;br&amp;gt;{{mono|*:System:Finder}}&amp;lt;br&amp;gt;{{mono|.APPLEDISK3.5B/file}}&lt;br /&gt;
|-&lt;br /&gt;
![[OpenHarmony]] exec&amp;lt;ref&amp;gt;{{cite web |title=Introduction to the Shell |url=https://github.com/eDorUS/OpenHarmony_docs/blob/master/en/device-dev/kernel/kernel-small-debug-shell-overview.md |access-date=13 March 2024 |website=GitHub |publisher=OpenAtom OpenHarmony}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite web |title=exec |url=https://github.com/dashingcalico/OpenHarmony/blob/master/docs-en/kernel/exec.md |access-date=14 March 2024 |website=GitHub |publisher=OpenAtom OpenHarmony}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|{{mono|hb set -root [ROOT_PATH]}}&amp;lt;br&amp;gt;or {{mono|hb set -p --product [PRODUCT_NAME]}}&lt;br /&gt;
|{{mono|&amp;gt;}}&lt;br /&gt;
|{{mono|./}}&lt;br /&gt;
|{{mono|../}}&lt;br /&gt;
|&lt;br /&gt;
|{{mono|LOCAL&amp;gt;MEDIA_TYPE_&amp;gt;Download&amp;gt;Letter.txt}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== In programming languages ==&lt;br /&gt;
&lt;br /&gt;
Most programming languages use the path representation of the underlying system, but some may also be system-independent.&lt;br /&gt;
&lt;br /&gt;
For instance, this C code is system-&amp;#039;&amp;#039;dependent&amp;#039;&amp;#039; and may fail on opposing systems:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot;&amp;gt;uxFile = fopen(&amp;quot;project/readme.txt&amp;quot;, &amp;quot;r&amp;quot;) // Fails on Windows&lt;br /&gt;
winFile = fopen(&amp;quot;C:\\Program Files\\bin\\config.bat&amp;quot;, &amp;quot;r&amp;quot;) // Fails on Unix&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In [[Java (programming language)|Java]], the {{var|File.separator}} field stores the system-dependent separator.&amp;lt;ref&amp;gt;{{Cite web |title=Java Development Kit Version 17 API Specification |url=https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/File.html#separator |access-date=2025-09-07 |website=docs.oracle.com |language=en}}&amp;lt;/ref&amp;gt; Some functions preclude the need for the separator entirely.&lt;br /&gt;
:&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;import java.io.File;&lt;br /&gt;
import java.nio.file.Path;&lt;br /&gt;
import java.nio.file.Paths;&lt;br /&gt;
// ...&lt;br /&gt;
File file = new File(&amp;quot;path&amp;quot; + File.separator + &amp;quot;file.txt&amp;quot;);&lt;br /&gt;
Path path = Paths.get(&amp;quot;path&amp;quot;, &amp;quot;file.txt&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* In [[Python (programming language)|Python]], the {{code|pathlib}} module offers system-independent path operations.&amp;lt;ref&amp;gt;{{Cite web |title=os.path — Common pathname manipulations |url=https://docs.python.org/3/library/os.path.html |access-date=2025-09-07 |website=Python documentation |language=en}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
:&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;from pathlib import Path&lt;br /&gt;
&lt;br /&gt;
with (Path(&amp;quot;path&amp;quot;) / &amp;quot;to&amp;quot; / &amp;quot;file.txt&amp;quot;).open() as open_file:&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== In Unix ==&lt;br /&gt;
Most Unix-like systems use a similar syntax.&amp;lt;ref&amp;gt;{{cite web |title=UNC Definition |url=https://www.computerlanguage.com/results.php?definition=UNC |website=ComputerLanguage.com}}&amp;lt;/ref&amp;gt; [[POSIX]] allows treating a path beginning with two slashes in an implementation-defined manner,&amp;lt;ref&amp;gt;{{cite web |title=POSIX pathname resolution specification |url=https://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html#tag_04_11}}&amp;lt;/ref&amp;gt; though in other cases systems must treat consecutive slashes as one.&amp;lt;ref&amp;gt;{{cite web |title=POSIX pathname definition |url=http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap03.html#tag_03_266}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Many applications on Unix-like systems (for example, [[secure copy|scp]], [[rcp (Unix)|rcp]], and [[rsync]]) use resource definitions such as {{code|hostname:/directorypath/resource}}, or [[list of URI schemes|URI]] schemes with the service name (here &amp;#039;[[Server Message Block|smb]]&amp;#039;), like {{code|smb://hostname/directorypath/resource}}.&lt;br /&gt;
&lt;br /&gt;
=== In macOS ===&lt;br /&gt;
When [[macOS]] was being developed, it inherited some pathname choices from [[Classic Mac OS]] and the [[Unix-like]] [[NeXTSTEP]]. The classic Mac OS uses a {{Code|:}} while [[Unix]] and Unix-like systems use a {{Code|/}} as the path delimiter. As a solution, to preserve compatibility for software and familiarity for users, and to allow disk file systems to be used both by the classic Mac OS and macOS, some portions of macOS convert between colons and slashes in pathnames;&amp;lt;ref&amp;gt;{{Cite web |last=Chan |first=Alex |date=2021-12-01 |title=A tale of two path separators |url=https://alexwlchan.net/2021/slashes/ |access-date=2025-09-07 |website=alexwlchan.net |language=en}}&amp;lt;/ref&amp;gt; for example, the HFS+ file system, from the classic Mac OS, converts colons in file names to slashes and, when reading a directory, converts slashes in filenames to colons,&amp;lt;ref name=&amp;quot;sanchez-usenix&amp;quot;&amp;gt;{{cite web |url=https://www.wsanchez.net/papers/USENIX_2000/ |title=The Challenges of Integrating the Unix and Mac OS Environments |first=Wilfredo |last=Sanches |date=2000}}&amp;lt;/ref&amp;gt; as and the [[Carbon (API)|Carbon]] toolkit converts colons in pathnames to slashes and slashes in path names to colons, and converts them back when providing filenames and pathnames to the caller.&amp;lt;ref name=&amp;quot;sanchez-usenix&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== In DOS and Windows ==&lt;br /&gt;
[[File:Dir command in Windows Command Prompt.png|thumb|300px|Screenshot of a [[Microsoft Windows|Windows]] [[Command Prompt]] shell showing filenames in a directory]]{{See also|8.3 filename}}&lt;br /&gt;
DOS and Windows have no single root directory; a root exists for each storage drive, indicated with a drive letter or through UNC.&lt;br /&gt;
&lt;br /&gt;
Directory and file name comparisons are case-insensitive: &amp;quot;test.TXT&amp;quot; would match &amp;quot;Test.txt&amp;quot;.&amp;lt;ref name=&amp;quot;netpaths&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Windows understands the following kinds of paths:&lt;br /&gt;
* Local paths, such as {{code|C:\File}}.&lt;br /&gt;
* [[Path (computing)#Universal Naming Convention|Universal naming convention (UNC)]].&lt;br /&gt;
* DOS device paths, such as {{code|\\?\C:\File}} or {{code|\\.\UNC\Server\Volume\File}}. The first, {{Code|\\?\}} skips path normalization. The second, {{code|\\.\}} uses the raw device namespace.&amp;lt;ref name=&amp;quot;netpaths&amp;quot;&amp;gt;{{cite web |last=De George |first=Andy |date=2022-12-14 |title=File path formats on Windows systems |url=https://learn.microsoft.com/dotnet/standard/io/file-path-formats |access-date=2019-07-14 |website=[[Microsoft Docs]] |department=}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;w32paths&amp;quot;&amp;gt;{{cite web |last=Ashcraft |first=Alvin |date=2024-08-28 |title=Naming Files, Paths, and Namespaces |url=https://learn.microsoft.com/windows/win32/fileio/naming-a-file |website=[[Microsoft Docs]]}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the [[Windows API]], file I/O functions automatically convert {{code|/}} into {{code|\}} (except when using the {{code|\\?\}} prefix). Unless the {{Code|\\?\}} prefix is used, paths are limited to the length defined by {{Var|MAX_PATH}}, which is 260.&amp;lt;ref&amp;gt;{{Cite web |last=Ashcraft |first=Alvin |date=2024-07-16 |title=Maximum Path Length Limitation - Win32 apps |url=https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation |access-date=2025-09-07 |website=learn.microsoft.com |language=en-us}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[PowerShell]] allows slash-interoperability for backwards-compatibility:&amp;lt;ref&amp;gt;{{Cite web |last=Wheeler |first=Sean |title=about_Path_Syntax - PowerShell |url=https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_path_syntax?view=powershell-7.5 |access-date=2025-09-07 |website=learn.microsoft.com |language=en-us}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;PS C:\&amp;gt;Get-Content -Path &amp;quot;C:/path/to/file.txt&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is some text within a file&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Yen/won character error ===&lt;br /&gt;
{{Main|Backslash#Confusion with ¥ and other characters}}&lt;br /&gt;
&lt;br /&gt;
Japanese and Korean versions of Windows often displayed the &amp;#039;[[¥]]&amp;#039; character or the &amp;#039;[[Won sign|₩]]&amp;#039; character instead of the directory separator. This is because while in ANSI codepages, the character at 0x5C was the backslash, and in Japanese and Korean codepages, 0x5C was the yen and won signs, respectively. Therefore, when the character for a backslash was used, other glyphs appeared.&amp;lt;ref&amp;gt;{{cite web |title=When is a backslash not a backslash? |url=http://archives.miloush.net/michkap/archive/2005/09/17/469941.html |website=Sorting it all Out}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Universal Naming Convention ===&lt;br /&gt;
{{Anchor|UNC}}&lt;br /&gt;
&lt;br /&gt;
The Microsoft &amp;#039;&amp;#039;&amp;#039;Universal Naming Convention&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;UNC&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;uniform naming convention&amp;#039;&amp;#039;&amp;#039;, or &amp;#039;&amp;#039;&amp;#039;network path&amp;#039;&amp;#039;&amp;#039;), is a syntax to describe the location of a network resource, such as a shared file, directory, or printer. A UNC path has the general form:&lt;br /&gt;
&lt;br /&gt;
{{Mono|\\ComputerName\SharedFolder\Resource}}&lt;br /&gt;
&lt;br /&gt;
Some Windows interfaces allow or require UNC syntax for [[WebDAV]] share access, rather than a URL. The UNC syntax is extended with optional components to denote use of SSL and TCP/IP port number. Thus, the WebDAV URL of {{code|https://hostname:443/SharedFolder/Resource}} becomes {{code|\\hostname@SSL@443\SharedFolder\Resource}}.&amp;lt;ref&amp;gt;{{cite web |date=13 October 2021 |title=DavGetHTTPFromUNCPath function |url=https://learn.microsoft.com/windows/win32/api/davclnt/nf-davclnt-davgethttpfromuncpath |access-date=2023-10-04 |website=[[Microsoft Docs]] |series=series |department=WebDAV: Windows}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When viewed remotely, the &amp;quot;SharedFolder&amp;quot; may have a name different from what a program on the server sees when opening &amp;quot;\SharedFolder&amp;quot;. Instead, the SharedFolder name consists of an arbitrary name assigned to the folder when defining its &amp;quot;sharing&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Since UNCs start with two backslashes, and the backslash is also used for [[Escape sequence|escape sequences]] and in [[regular expression]]s, cases of [[leaning toothpick syndrome]] may arise. An escaped string for a regular expression matching a UNC begins with 8 backslashes {{code|\\\\\\\\}} because the string and regular expression both require escaping. This can be simplified by using [[raw string]]s, such as {{code|@&amp;quot;\\\\&amp;quot;|csharp}} in C#, {{code|r&amp;#039;\\\\&amp;#039;|python}} in [[Python (programming language)|Python]], or {{code|qr{\\\\}|perl}} in [[Perl]].&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* {{Annotated link|basename}}&lt;br /&gt;
* {{Annotated link|Device file}}&lt;br /&gt;
* {{Annotated link|dirname}}&lt;br /&gt;
* {{Annotated link|Distributed file system}}&lt;br /&gt;
* {{Annotated link|Filename}}&lt;br /&gt;
* {{Annotated link|Filesystem Hierarchy Standard}}&lt;br /&gt;
* {{Annotated link|Fully qualified file name}}&lt;br /&gt;
* {{Annotated link|PATH (variable)}}&lt;br /&gt;
* {{Annotated link|URL}}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
{{Notelist}}&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
{{Computer files}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Computer file systems]]&lt;/div&gt;</summary>
		<author><name>imported&gt;WhoAteMyButter</name></author>
	</entry>
</feed>