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!
===DOS, Windows, ReactOS=== List all files and directories in the current [[working directory]]. {{sxhl|2=doscon|C:\Users>dir}} List any [[text file]]s and [[batch file]]s ([[filename extension]] ".txt" or ".bat"). {{sxhl|2=doscon|C:\Users>dir *.txt *.bat}} [[Recursion (computer science)|Recursively]] list all files and directories in the specified directory and any subdirectories, in wide format, pausing after each screen of output. The directory name is enclosed in [[Quotation mark|double-quotes]], to prevent it from being interpreted is as two separate [[command-line option]]s because it contains a [[whitespace character]]. {{sxhl|2=doscon|C:\Users>dir /s /w /p "C:\Users\johndoe\My Documents"}} List any [[NTFS junction point]]s: {{pre| {{codett|2=doscon|C:\Users>dir /ash}} {{codett|2=output|Volume in drive C is OS.}} {{codett|2=output|Volume Serial Number is xxxx-xxxx}} {{codett|2=output|Directory of C:\Users}} {{codett|2=output|12/07/2019 02:30 AM <SYMLINKD> All Users [C:\ProgramData]}} {{codett|2=output|12/07/2019 02:30 AM <JUNCTION> Default User [C:\Users\Default]}} {{codett|2=output|12/07/2019 02:12 AM 174 desktop.ini}} {{codett|2=output|1 File(s) 174 bytes}} {{codett|2=output|2 Dir(s) 332,659,789,824 bytes free}} }}
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)