Dir option
Several optional parameters, when separated from the rest of the command with a dash, can follow the DIR command:
| A | display directory information about files with the archive bit on. The archive bit automatically sets to "on" whenever a file is changed. The operating system's back-up utility or the -A option of the COPY command turns it off (see COPY command). This option is completely ignored by Linux systems. |
| L | display long filenames in addition to the normal DOS style directory. List the permissions for each file on Linux versions. |
| O | sort the directory output in alphabetical order. |
| P | pause scrolling after a full screen of information has been displayed. Press <ENTER> for next screen. |
| W | display names in four columns across the width of the screen. One name per line appears when directory I information is redirected to a file. This option sorts the output and uses the long filename format. -W works like -C, except the sequence of filenames is across instead of down. |
| U | unadorned - display directory content without the extended filenames |
| C | print in columnar sorted order with a trailing / symbol for directories and a trailing * for executables. |
| L | display long filenames in addition to the normal DOS style directory. Show permissions on the left and long filenames on the right. |
| B | display only the bare long filename, similar to DOS. |