Prepare for the COMPTIA A+ Exam with essential quizzes covering key topics and multiple choice questions. Boost your knowledge and readiness for achieving certification!

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.