Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Dir (command)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Shell command for listing files and directories}} {{Other uses|Dir (disambiguation)}} {{Lowercase title}} {{Infobox software | name = dir | logo = | screenshot = SpartaDOS X prompt.png | screenshot size = | caption = The [[SpartaDOS X]] <code>DIR</code> command | developer = [[Digital Equipment Corporation|DEC]], [[Digital Research|DR]], [[Intel]], [[Cromemco]], [[MetaComCo]], [[Microsoft]], [[IBM]], [[Datalight]], ICD, Inc. | released = | latest release version = | latest release date = | operating system = [[CP/M]], [[MP/M]], [[ISIS (operating system)|ISIS-II]], [[RMX (operating system)|iRMX 86]], [[Cromemco DOS|CDOS]], [[TRIPOS]], [[DOS]], [[MSX-DOS]], [[SISNE plus]], [[4690 Operating System|4690 OS]], [[PC-MOS]], [[OS/2]], [[Microsoft Windows|Windows]], [[Singularity (operating system)|Singularity]], [[ReactOS]], [[AROS Research Operating System|AROS]], [[OpenVMS|VMS]], [[RT-11]], [[RSX-11]], [[OS/8]], [[AmigaDOS]] | platform = [[Cross-platform]] | genre = [[Command (computing)|Command]] | license = CP/M, MP/M: [[BSD licenses|BSD]]-like<br />MS-DOS: [[MIT License|MIT]]<br />PC-MOS: [[GPL-3.0-only]]<br />ReactOS: [[GNU General Public License|GPL]] | website = }} '''<code>dir</code>''', short for ''directory'', is a [[shell (computing)|shell]] [[command (computing)|command]] for listing [[file system]] contents; [[computer file|files]] and [[file directory|directories]].<ref>{{cite book|url=http://archive.org/details/1988-rugheimer-spanik-amigados-quick-reference|title=AmigaDOS quick reference|first1=Hannes|last1=Rügheimer|first2=Christian|last2=Spanik|date=October 22, 1988|publisher=Grand Rapids, Mi : Abacus|isbn=9781557550491|via=Internet Archive}}</ref> Arguably, the command provides the same essential functionality as the <code>[[ls]]</code> command, but typically the two commands are described as notably separate concepts, possibly since {{code|ls}} is implemented from a [[codebase]] that shares more history than many {{code|dir}} implementations. The command is often implemented as internal in the [[operating system]] [[shell (computing)|shell]] instead of as a separate application as many other commands are.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)