Vidyalelo
Computer Science · Q20

Disk Operating System (DOS)

Engineering and GATE · Computer Science · question 20

Q20

Which command is used to delete the directory that is empty?

A.
Del *.*
B.
RD
Answer
C.
Erase
D.
MD

Answer: Option B

Solution

Answer: Option B
Solution:
RD command or RMDIR commands can be used to remove a directory if it is empty. Del command and Erase commands are used to delete files not directories. MD creates a new directory and can't remove directory.