Which of the following commands will remove that directory?

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

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



Leave a Reply 7

Your email address will not be published. Required fields are marked *


Starr

Starr

E is not the correct answer. The answer should be B

gra

gra

I think it should be B

greg

greg

No, the correct answer is E, as the backslask “\” escapes itself. You need 4 \ to get the path \\dir

Anon

Anon

You’d know the correct answer if you actually tried the command and learned

Teerawat

Teerawat

The correct one is B, I just try after read the comment.

Davi

Davi

I have now tested on my Linux Ubuntu and only option E is correct:
rmdir ~/\\\\dir

I tested the other options and they all went wrong

Mahoni

Mahoni

Thank you so much, Guys