dir (command)
GPL-3.0-only ReactOS: GPL |
In
tree
Implementations
The command is available in the
The dir
command is supported by
The numerical computing environments MATLAB and GNU Octave include a dir
function with similar functionality.[17][18]
Examples
DOS, Windows, ReactOS
List all files and directories in the current working directory.
C:\Users>dir
List any text files and batch files (filename extension ".txt" or ".bat").
C:\Users>dir *.txt *.bat
C:\Users>dir /s /w /p "C:\Users\johndoe\My Documents"
List any
C:\Users>dir /ash
Volume in drive C is OS.
Volume Serial Number is xxxx-xxxx
Directory of C:\Users
12/07/2019 02:30 AM <SYMLINKD> All Users [C:\ProgramData]
12/07/2019 02:30 AM <JUNCTION> Default User [C:\Users\Default]
12/07/2019 02:12 AM 174 desktop.ini
1 File(s) 174 bytes
2 Dir(s) 332,659,789,824 bytes free
Unices
dir
is not a Unix command; Unix has the analogous ls
command instead. The GNU operating system, however, has a dir
command that "is equivalent to ls -C -b
; that is, by default files are listed in columns, sorted vertically, and special characters are represented by backslash escape sequences".[19] Actually, for compatibility reasons, ls produces device-dependent output. The dir
instruction, unlike ls -Cb
, produces device-independent output.
See also
- Directory (OpenVMS command)
- List of DOS commands
- *nixsystems)
References
- ISBN 9781557550491– via Internet Archive.
- ^ "Operating manual" (PDF). cpm.z80.de. Retrieved 2019-10-22.
- ^ Digital Research (1981-09-25). MP/M-86 Operating System - User's Guide (PDF) (1 ed.). Pacific Grove, CA, USA: Digital Research. Archived (PDF) from the original on 2017-01-04. Retrieved 2017-01-04.
- ^ ISIS II Users Guide
- ^ iRMX 86 INTRODUCTION AND OPERATOR'S REFERENCE MANUAL For Release 6
- ^ CDOS USER'S MANUAL
- ^ "Introduction to Tripos" (PDF). Retrieved 2019-10-22.
- ^ [1][dead link]
- ^ "JaTomes Help - OS/2 Commands". www.jatomes.com. Archived from the original on 2019-04-14. Retrieved 2019-07-20.
- ^ "MS-DOS and Windows command line dir command". www.computerhope.com.
- ^ "Datalight ROM-DOS User's Guide" (PDF). www.datalight.com.
- ^ "GitHub - reactos/reactos: A free Windows-compatible Operating System". October 22, 2019 – via GitHub.
- ^ "GNU Coreutils Manual". Free Software Foundation.
- ^ "AROS Research Operating System". aros.sourceforge.net.
- Seattle Computer Products, Inc. 1980. Archived from the original(PDF) on 2019-07-14. Retrieved 2019-07-14. (59 pages)
- ISBN 0-7356-1812-7.
- ^ "List folder contents - MATLAB dir". www.mathworks.com.
- ^ "Function Reference: dir". octave.sourceforge.io.
- ^ dir invocation (GNU coreutils) at www.gnu.org
Further reading
- Wolverton, Van (1990). MS-DOS Commands: Microsoft Quick Reference, 4th Revised edition. ISBN 978-1556152894.
- Kathy Ivens; Brian Proffit (1993). OS/2 Inside & Out. ISBN 978-0078818714.
- Frisch, Æleen (2001). Windows 2000 Commands Pocket Reference. ISBN 978-0-596-00148-3.