- Dir (command)
In
computing ,dir
(directory) is a command used for file and directory listing, specifically in thecommand line interface (CLI) of theRT-11 ,CP/M , VMS,DOS ,OS/2 and Windowsoperating system s. It is analogous to theUnix
command.ls Because it is the primary means of displaying the files and directories on disk or other storage medium within a command window, the dir command is one of the most basic commands employed by users of the command line interface to MS-DOS and various versions of Windows. [cite web |url=http://www.tnd.com/camosun/elex130/dostutor1.html |title=Learning MS-DOS Basics - A Tutorial |accessdate=2007-08-08 |last=Baril |first=Suzanne |date=2000-01-10 ]
The
dir
command has existed as a DOS command since the initial release ofMS-DOS . It is built into the DOS command shell, and is not provided as a separate standalone program.In
DOS andMicrosoft Windows , dir checks for switches in the %dircmd% environment variable.In
Windows PowerShell , dir is a predefined command alias for theGet-ChildItem
Cmdlet which basically serves the same purpose.ee also
*
Directory (OpenVMS command)
*List of Unix programs
*List of DOS commands References
Wikimedia Foundation. 2010.