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 does the DOS command 'Dir /ad' display?

  1. All files

  2. Hidden files

  3. Directories only

  4. System files

The correct answer is: Directories only

The command 'Dir /ad' is used in the DOS command line interface to display a list of directories only. The '/ad' switch specifically instructs the command to filter the results and show only those entries that are directories, excluding files. This command is useful for users who want to quickly view the structure of folders within a directory without having to sift through individual files. By isolating directories, this command helps maintain a clear focus on folder organization, making it easier for users to navigate their file systems.