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
2 Comments on “Which of the following commands will remove that directory?”
James Gastovskisays:
It should be D
0
0
Pericosays:
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.
It should be D
0
0
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
2
0