nerdexam
LPI

101-500 · Question #365

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."…

The correct answer is E. rmdir ~bob/\\bobsdir. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

Shells and Shell Scripting

Question

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?

Options

  • Armdir 'bob/\bobsdir'
  • Brmdir "bob/\bobsdir"
  • Crmdir ~bob/ 'bobsdir'
  • Drmdir bob/\bobsdir
  • Ermdir ~bob/\bobsdir

How the community answered

(25 responses)
  • B
    4% (1)
  • C
    4% (1)
  • D
    12% (3)
  • E
    80% (20)

Explanation

You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

Topics

#shell escaping#special characters in filenames#quoting mechanisms#tilde expansion

Community Discussion

No community discussion yet for this question.

Full 101-500 Practice