The DIR command displays a list of files in a given directory.

The information includes file attributes information. If it is a folder, then <dirs> is displayed. If it is a file, then file attributes are displayed. <-r> means read–only.

This information also includes file name, file size, the number of files found and their size. If you see a difference between the number of files displayed and the number of files given, it dues to the hidden file. The DIR command in sh.exe does not display hidden files.

Example Commands

s sh dir \

s sh dir \windows\*.dll