dir is the file and directory listing command line interface (CLI) command used in the DOS operating system.

Sample Listing

This sample happens to be taken from a Microsoft Windows 2000 implementation of the MS-DOS CLI.

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\\>dir Volume in drive C is MAIN W2K Volume Serial Number is 2326-30E6

Directory of C:\\

11/17/2001 09:40p 257,787 INF000.SWP 04/16/2002 10:12p 446 VIRUSLOG.TXT 05/19/2002 04:34p

filelib 11/22/2001 05:17p 228 BOOT.BAD 11/22/2001 05:10p 1,663 MSDOS.BAD 12/09/2001 09:07a 8,681 SCANDISK.LOG 11/22/2001 05:40p 1,775 MSDOS.SYS 11/22/2001 03:35p 0 Config.ctl 01/03/2002 12:05a eBooks 11/22/2001 04:59p 185 BOOT.w98 04/25/2002 10:42p 18,968 debug8.txt 11/28/2002 10:00p 113 test.txt 11/22/2001 05:12p 253 BOOT.w2k 03/08/2002 02:08p Virtual CDs 11/22/2001 02:17p Games 11/17/2001 10:04p Documents and Settings 05/12/2002 05:57p dostemp 04/01/2001 02:13p My Music 10/14/2001 09:51a Downloads 05/18/2002 05:32p Batch 05/25/2002 09:21p dosprog 08/01/2002 07:15p 160 AUTOEXEC.BAT 11/22/2001 11:32p 438 Desktop.lnk 03/13/2002 03:47p 623 INSTALL.LOG 06/06/2002 09:46p 4,514 NetDiag.log 11/22/2001 03:44p 72 CONFIG.001 06/06/2002 10:01p version 12/09/2001 05:24p Backup 10/14/2001 09:25a MSDOS7 11/18/2002 03:55a 14,040 mdebug.log 07/29/2002 10:57p _gimp1.2 01/26/2002 12:57a 0 update.inf 06/06/2002 10:01p noversion 06/11/2002 03:02a DrWatson 06/18/2002 10:55p OttoAndIris 07/05/2002 01:01p vortapps 07/08/2002 01:58p Active Worlds 07/23/2002 02:03p Download Favorites 07/29/2002 04:57p - my pix 08/18/2002 07:22p Inetpub 09/25/2002 10:14p FOUND.000 09/30/2002 03:48p cygwin 09/30/2002 06:22p 57 cygwin.bat 10/04/2002 04:05p FOUND.001 10/09/2002 02:43p 2,865 test 11/04/2002 07:52p My Downloads 10/13/2002 02:30p mysql 12/12/2002 12:24a WG0A5.TMP 10/29/2002 07:52a test1 11/25/2002 03:02a My Documents 11/29/2002 01:03p testdir 03/31/2002 02:35a My Music - Morality Issues 11/22/2002 03:50p My Music - Writable CD Data 12/12/2002 12:36a WG0A4.TMP 12/13/2002 12:56a FOUND.002 03/08/2002 02:41p WINNT 03/08/2002 02:45p Program Files 03/25/2002 11:00p 2,359,350 computer lake.bmp 03/27/2002 09:36p Program FilesdBpowerAMP 03/30/2002 10:48p 126 AurealDelUS.bat 03/31/2002 07:41p Temp 04/15/2002 05:36p 1,716 usb001 04/16/2002 03:22p MSSQL7 23 File(s) 2,674,060 bytes 40 Dir(s) 2,672,476,160 bytes free