Talk:dir (command)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconComputing Start‑class Mid‑importance
WikiProject iconThis article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
StartThis article has been rated as Start-class on Wikipedia's content assessment scale.
 Mid This article has been rated as Mid-importance on the project's importance scale.

Removed Unix statement[edit]

I've removed the statement "In Unix, dir is a symbolic link to or an alias for the ls command.", although it may well be a symbolic link or shell alias, there is no requirement or standard that dictates that. There is no mention whatsoever of a `dir` utitlity in the single unix specification, and there is no dir symlink or alias in the profile of some systems I have checked, including NetBSD and HP-UX. The GNU ls package includes a `dir` command, but this is a hardlink to gnu ls, which behaves differently when called as dir. -- taviso 15:51, 30 Jan 2005 (UTC)

I looked up this article when, after reading the dir manpage, I suspected dir is an "alias" of ls in a special way, so this information is actually what I hoped to learn from the article, and I put it back into the article in some form. --Uwe Lück (talk) 08:02, 4 July 2014 (UTC)Reply[reply]


shouldn't the title of the page be DIR (all caps) ? —Preceding unsigned comment added by (talkcontribs) 00:07, 10 February 2006

explanation section[edit]

Much of the explanation section looks like it was copied directly from Windows XP help. It is correct only for Windows NT, not MS-DOS. —Preceding unsigned comment added by (talkcontribs) 04:00, 27 September 2006


Should there not be a list of parameters for the command? This is the info I was looking for. All I found was the "Most commonly used parameters" in the article List of DOS commands. Paalsteinhard (talk) 23:25, 14 June 2008 (UTC)Reply[reply]


The same command exists also in RT-11 and RSX-11 command interface. The same can be said about various other commands (assign, copy, format etc).-- 16:13, 12 June 2007 (UTC)Reply[reply]

dir command exists also in Linux. Check this link: [[1]] -- (talk) 02:26, 6 February 2009 (UTC)Reply[reply]
See #Removed Unix statement above. Chris Cunningham (not at work) - talk 11:05, 6 February 2009 (UTC)Reply[reply]

Output on Windows 7[edit]

I'm trying the dir /w command on Win7, with & without the space, & it's not working for me at all. Here's how it looks:

C:\Users\Smith>dir /w
 Volume in drive C is OS
 Volume Serial Number is 48AD-3B31

 Directory of C:\Users\Smith

[Calibre Library]
[Saved Games]
US and China engage in cyber war games _ Technology _
UTT Online Application Ack.pdf
UTT Online Application Summary.pdf
               5 File(s)        244,602 bytes
              18 Dir(s)  75,778,936,832 bytes free

MonoTrouble (talk) 20:42, 13 April 2013 (UTC)Reply[reply]

Copyright problem removed[edit]

Prior content in this article duplicated one or more previously published sources. Copied or closely paraphrased material has been rewritten or removed and must not be restored, unless it is duly released under a compatible license. (For more information, please see "using copyrighted works from others" if you are not the copyright holder of this material, or "donating copyrighted materials" if you are.)

For legal reasons, we cannot accept copyrighted text or images borrowed from other web sites or published material; such additions will be deleted. Contributors may use copyrighted publications as a source of information, and, if allowed under fair use, may copy sentences and phrases, provided they are included in quotation marks and referenced properly. The material may also be rewritten, providing it does not infringe on the copyright of the original or plagiarize from that source. Therefore, such paraphrased portions must provide their source. Please see our guideline on non-free text for how to properly implement limited quotations of copyrighted text. Wikipedia takes copyright violations very seriously, and persistent violators will be blocked from editing. While we appreciate contributions, we must require all contributors to understand and comply with these policies. Thank you. Codename Lisa (talk) 06:24, 6 June 2017 (UTC)Reply[reply]