exam questions

Exam 220-1102 All Questions

View all questions & answers for the 220-1102 exam

Exam 220-1102 topic 1 question 99 discussion

Actual exam question from CompTIA's 220-1102
Question #: 99
Topic #: 1
[All 220-1102 Questions]

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

  • A. md
  • B. del
  • C. dir
  • D. rd
  • E. cd
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Dido1963
Highly Voted 2 years, 4 months ago
Selected Answer: D
with "del" you can delet only a file, not a direktory! You need to use rd
upvoted 12 times
...
aisling
Highly Voted 2 years, 4 months ago
Selected Answer: D
rd remove directory
upvoted 5 times
...
Byteszn
Most Recent 9 months, 3 weeks ago
I've always known it to be "rd" since MS-Dos days, powershell isn't that commonly used by all techs.
upvoted 1 times
...
Raffaelloo
1 year, 4 months ago
Selected Answer: D
In computing, rmdir (or rd ) is a command which will remove an empty directory on various operating systems.
upvoted 1 times
...
Jolt
1 year, 5 months ago
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
upvoted 3 times
...
Fannan
1 year, 9 months ago
Selected Answer: D
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).
upvoted 1 times
...
EngAbood
1 year, 9 months ago
mkdir -- create directory , rmdir -- remove directry , i was looking for rmdir :((((((((((
upvoted 2 times
CircaG
1 year, 3 months ago
rmdir = rd mkdir = md
upvoted 1 times
...
...
solaWONDER
1 year, 10 months ago
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
upvoted 1 times
...
solaWONDER
1 year, 10 months ago
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.
upvoted 1 times
...
[Removed]
2 years, 1 month ago
Selected Answer: D
Answer is 10000% "rd". like many have said, it stands for remove directory.
upvoted 4 times
LayinCable
2 years, 1 month ago
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)
upvoted 2 times
...
...
Rafid51
2 years, 2 months ago
Selected Answer: D
Answer is "rd" short for "remove directory"
upvoted 2 times
...
cecegilbert
2 years, 3 months ago
Selected Answer: D
Remove directory=rd
upvoted 1 times
...
dimeater
2 years, 5 months ago
Selected Answer: D
Remove directory = rmdir l rmdir = RD
upvoted 1 times
...
Thejphall
2 years, 6 months ago
answer is D. "rd" is an alias for the command "rmdir" which functions to remove directories.
upvoted 2 times
...
Sammyy2323
2 years, 6 months ago
Selected Answer: D
verified from microsoft windows commands.
upvoted 3 times
imtiazL
2 years, 6 months ago
Correct rd deletes the folder and all data within the folder del deletes only the data within the folder
upvoted 2 times
...
...
longbob
2 years, 7 months ago
Out of curiosity, What operating system are we deleting the directory from?
upvoted 1 times
longbob
2 years, 7 months ago
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.
upvoted 2 times
...
...
Sarooor
2 years, 7 months ago
i think the right answer is D
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago