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!

Practice this question and more.


Which DOS command is used on newer Windows systems to list both long and short filenames?

  1. Dir /x

  2. Dir /b

  3. Dir /s

  4. Set Dircmd=/on /w

The correct answer is: Dir /x

On newer Windows systems, the command "dir /x" is used to display both long and short filenames. The other options are incorrect because - Dir /b only displays the file names without any additional information. - Dir /s displays all subdirectories and the files they contain, but not both long and short filenames. - Set Dircmd=/on /w only changes the display format of the dir command and does not specifically display both long and short filenames.