101-400 question 40 discussion

answered

A user accidentally created the subdirectory \dir in his home directory. Which of the
following commands will remove that directory?

  • A. rmdir '~/\dir'
  • B. rmdir "~/\dir"
  • C. rmdir ~/'dir'
  • D. rmdir ~/\dir
  • E. rmdir ~/\\dir
Created 2 months ago by andredrumond1995

andredrumond1995

the correct answer is the letter D it's not the letter E

oribd

I initially thought it's E, and saw your comment, so quickly checked to make sure. I still think it's E...

sn0wday

I was checked. E - is a correct answer...

dansal87

can anyone explain the answer please? thanks.

jmisset

D will remove a directory called dir. E will remove a directory called \dir. This is because the \ by itself is not recognized as the character \

Msiphos

the answer is wrong...correct answer is rmdir ~/dir

jmisset

No, its E. See other comments

Msiphos

d is correct...my apologies