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
It should be D
Not my friend James:
I tested “rmdir ~/\\\\dir” and it does work well. ~/ is the home directory. \\\\ mean that the caracter next to \ is not a especial caracter else a simple \ then you need two \\ for the first one and \\ for the second.
rmdir ~/\\\\dir
Regards