Ace your COMPTIA A+ certification with our practice exam. Engage with a variety of questions including multiple choice and performance-based, complete with hints and detailed explanations. Prepare effectively and boost your confidence for the big day!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What is the DOS command for a bare listing of filenames only?

  1. Dir /b

  2. Dir /s

  3. Dir /og-d

  4. Dir /x

The correct answer is: Dir /b

The DOS (Disk Operating System) command for a bare listing of filenames only is "Dir /b". This option displays a list of names without any additional information, such as the size or timestamps. Option B, "Dir /s", will display the names of all files and subfolders in the current directory, including any additional information. Option C, "Dir /og-d", is an invalid command as the correct syntax for sorting is "/on" followed by the sorting character. Option D, "Dir /x", displays the names of files and folders in a shortened format, which is used to list long filenames (more than 8 characters) in a format that is compatible with older programs. Therefore, both option B and D will not provide a bare listing of filenames only and are incorrect.