Which command will remove the directory?

Bob accidentally created the subdirectory bobsdir in his home directory. He tried to remove the
subdirectory with the command rmdir bobsfile only to receive the error, "No such file or directory."
Which command will remove the directory?

Bob accidentally created the subdirectory bobsdir in his home directory. He tried to remove the
subdirectory with the command rmdir bobsfile only to receive the error, "No such file or directory."
Which command will remove the directory?

A.
rmdir ‘bob/bobsdir’

B.
rmdir "bob/bobsdir"

C.
rmdir ~bob/ ‘bobsdir’

D.
rmdir bob/bobsdir

E.
rmdir ~bob/ bobsdir



Leave a Reply 1

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


Marius David

Marius David

The C command will remove the directory

The E command will delete the directory if we don’t have a space between ~/bob and bodsdir