Dir (command)

dir
Developer(s)DEC, DR, Intel, Cromemco, MetaComCo, Microsoft, IBM, Datalight, ICD, Inc.
Operating systemCP/M, MP/M, ISIS-II, iRMX 86, CDOS, TRIPOS, DOS, MSX-DOS, SISNE plus, 4690 OS, PC-MOS, OS/2, Windows, Singularity, ReactOS, AROS, VMS, RT-11, RSX-11, OS/8, AmigaDOS
PlatformCross-platform
TypeCommand
LicenseCP/M, MP/M: BSD-like
MS-DOS: MIT
PC-MOS: GPL-3.0-only
ReactOS: GPL

dir, short for directory, is a shell command for listing file system contents; files and directories. Arguably, the command provides the same essential functionality as the ls command, but typically the two commands are described as notably separate concepts, possibly since ls is implemented from a codebase that shares more history than many dir implementations.

The command is often implemented as internal in the operating system shell instead of as a separate application as many other commands are.