220-1102 Exam QuestionsBrowse all questions from this exam

220-1102 Exam - Question 99


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

Show Answer
Correct Answer: BD

The command-line tool that can be used to delete a directory is 'rd'. The 'rd' command stands for 'remove directory' and is specifically designed for this purpose. This is distinct from the 'del' command, which is used to delete files, not directories. Other commands listed do not perform directory deletion.

Discussion

17 comments
Sign in to comment
Dido1963Option: D
Dec 9, 2022

with "del" you can delet only a file, not a direktory! You need to use rd

aislingOption: D
Dec 9, 2022

rd remove directory

[Removed]Option: D
Mar 18, 2023

Answer is 10000% "rd". like many have said, it stands for remove directory.

LayinCable
Mar 28, 2023

I know who you are and you do not know what you are talking about pal. Get off your high horse and get on your rightful pony. (The answer is D though)

Sammyy2323Option: D
Oct 16, 2022

verified from microsoft windows commands.

imtiazL
Oct 27, 2022

Correct rd deletes the folder and all data within the folder del deletes only the data within the folder

JoltOption: B
Nov 9, 2023

answer is del, try it it out in powershell! , make a folder, then go on in powershell browse to to parent directory an del directory and poof it's gone

ThejphallOption: D
Nov 7, 2022

answer is D. "rd" is an alias for the command "rmdir" which functions to remove directories.

Rafid51Option: D
Feb 17, 2023

Answer is "rd" short for "remove directory"

EngAboodOption: D
Aug 8, 2023

mkdir -- create directory , rmdir -- remove directry , i was looking for rmdir :((((((((((

CircaG
Jan 30, 2024

rmdir = rd mkdir = md

SarooorOption: D
Sep 29, 2022

i think the right answer is D

longbob
Oct 6, 2022

Out of curiosity, What operating system are we deleting the directory from?

longbob
Oct 6, 2022

In Windows Command Prompt you can use the "del" command to delete objects. In Linux, -bash: rd: command not found rm -d is the command to remove/delete a directory. Hopefully this will add some clarity to this poorly written question.

dimeaterOption: D
Dec 5, 2022

Remove directory = rmdir l rmdir = RD

cecegilbertOption: D
Jan 29, 2023

Remove directory=rd

solaWONDEROption: D
Jul 4, 2023

D. rd (or rmdir) The "rd" command in Windows or "rmdir" command in Unix-like systems is used to remove or delete a directory. This command deletes an empty directory. If the directory is not empty, you may need to use additional options or flags with the command to force the deletion and remove all the files and subdirectories within it.

solaWONDEROption: D
Jul 6, 2023

The command-line tool that can be used to delete a directory is the "rd" command. This command is specifically designed to remove directories from a file system

FannanOption: D
Aug 9, 2023

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).

RaffaellooOption: D
Dec 10, 2023

In computing, rmdir (or rd ) is a command which will remove an empty directory on various operating systems.

BytesznOption: D
Jul 16, 2024

I've always known it to be "rd" since MS-Dos days, powershell isn't that commonly used by all techs.