How do you remove a directory from the command line?

What function can be used on the command line to remove an empty directory?

A) RM

B) REMDIR

C) RD

D) REM

Answer: C) RD

The command line of the Windows operating system is not without its challenges, but most of the commands are simple memorization. Fortunately, the RD command is used so often on the command line that it’s relatively easy to remember.

On the exam, however, all of the commands tend to run together. Fortunately, there are only a few command line functions that you’ll need to remember. The 220-602 exam requirements specifically list these command line functions:

CMD
HELP
DIR
ATTRIB
EDIT
COPY
XCOPY
FORMAT
IPCONFIG
PING
MD / CD / RD

Considering that there are almost 100 command line functions available, this list isn’t so bad!

Want to learn more? Watch “The Windows Command Line”


The intricacies of the Windows command line may seem difficult to grasp, but with a little bit of practice and knowledge you’ll begin to take advantage of some powerful functionality. In this video, we’ll use the Windows command line to manage files and directories, edit files, perform diagnostics and tune the operating system.