PrepAway - Latest Free Exam Questions & Answers

“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?

PrepAway - Latest Free Exam Questions & Answers

A.
rmdir ‘bob/bobsdir’

B.
rmdir “bob/bobsdir”

C.
rmdir ~bob/ ‘bobsdir’

D.
rmdir bob/bobsdir

E.
rmdir ~bob/bobsdir

Explanation:
~bob specifies the home directory of Bob, means one literal backslash.

2 Comments on ““Which command will remove the directory?

  1. Bond says:

    The right questions is: Bob accidentally created the subdirectory \bobsdir in his home directory.
    Answer is: ~bob/\\bobsdir (first backslash is for ignoring the second backslash)




    0



    0

Leave a Reply