nerdexam
CompTIA

220-1102 · Question #122

Which of the following command-line tools will delete a directory?

The correct answer is D. rd. To delete an empty directory, enter rd Directory or rmdir Directory. If the directory is not empty, you can remove files and subdirectories from it using the /s switch. You can also use the /q switch to suppress confirmation messages (quiet mode).

Operating Systems

Question

Which of the following command-line tools will delete a directory?

Options

  • Amd
  • Bdel
  • Cdir
  • Drd
  • Ecd

How the community answered

(24 responses)
  • D
    96% (23)
  • E
    4% (1)

Explanation

To delete an empty directory, enter rd Directory or rmdir Directory. If the directory is not empty, you can remove files and subdirectories from it using the /s switch. You can also use the /q switch to suppress confirmation messages (quiet mode).

Topics

#Command Line#Windows Commands#Directory Management#File System

Community Discussion

No community discussion yet for this question.

Full 220-1102 Practice