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 2

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


James Gastovski

James Gastovski

It should be D

Perico

Perico

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