QuestionQ37

VerifiedEssential Commands

A user inadvertently created the subdirectory \dir in their home directory. Which of the following commands removes that directory?

Explanation

A literal backslash in an unquoted shell pathname must itself be escaped. ~/\\dir expands ~ to the user’s home directory and passes \dir as the directory name, so rmdir removes that empty directory.

Community Discussion

No comments yet. Be the first to start the discussion!