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

Image Description

Question: 1 / 525

How can you list all directories including subdirectories using DOS commands?

Dir /x

Dir /s

The command "Dir /s" will display all directories and subdirectories in a specified location. Option A, "Dir /x", will display the short names of all files and folders, not all directories and subdirectories. Option C, "Dir /b", will display only the bare format, meaning only the file names will be listed, not the directory structure. Option D, "Dir /og-d", will order the files and directories by their last modification date, so it will not list all directories and subdirectories. Therefore, option B is the correct answer for listing all directories including subdirectories using DOS commands.

Get further explanation with Examzify DeepDiveBeta

Dir /b

Dir /og-d

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy