Linux Administration
medium

Pregunta de Linux Administration #019e3987

Enunciado de la Pregunta
Linux Administration
#rmdir
#backslash
#quoting
#tilde expansion
#pathname
Medio

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

Correcto

Explicación Oficial / Explicaciones de la Comunidad

In shell commands, the backslash \ is an escape character. To represent a literal backslash, it must be escaped itself: \\.