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
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
E is not the correct answer. The answer should be B
I think it should be B
No, the correct answer is E, as the backslask “\” escapes itself. You need 4 \ to get the path \\dir
You’d know the correct answer if you actually tried the command and learned
The correct one is B, I just try after read the comment.
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
Thank you so much, Guys