UNIT 1 - Learn to Use Basic DOS Commands
Displays a list of files and sub directories in a directory.
Switches Used With DIR Command
/A Displays files with specified attributes.
Attributes : -
/AD Directories /AR Read-only files
/AH Hidden files /AS System files
/D Same as wide but files are list sorted by column.
/L Uses lowercase.
/O List by files in sorted order.
Sort Order (- Prefix to reverse order)
/ON By name (alphabetic) /OS By size (smallest first)
/OE By extension (alphabetic) /OD By date/time (oldest first)
/OG Group directories first
/P Pauses after each screen full of information.
/Q Display the owner of the file.
/S Displays files in specified directory and all sub directories.
/W Uses wide list format.