COMPTIA A+ Practice Exam 2026 - Free CompTIA A+ Practice Questions and Study Guide

Session length

1 / 755

Which DOS command lists directories in reverse date order with files grouped separately?

Dir /og-d

This is because the "/o" flag in the "Dir" command allows for sorting based on specific criteria, with "g" representing grouping of files and "-" representing the reverse order. "d" specifies the sorting criteria of date.

Option B, "/x" is incorrect as it displays directory or file short names, not the sorting of directories in reverse date order.

Option C, "/s" lists all directories and subdirectories in the specified location, regardless of the sorting order.

Option D, "Set Dircmd=/on /w" changes the default sorting to be in alphabetical order by name, not by date or grouping.

Get further explanation with Examzify DeepDiveBeta

Dir /x

Dir /s

Set Dircmd=/on /w

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy