QuestionQ43

VerifiedGNU and Unix Commands

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

Explanation

In shell pathname processing, an unquoted double backslash represents one literal backslash, and a leading ~ expands to the user’s home directory. Therefore, the pathname ~/\\dir targets the subdirectory named \dir in that home directory.

Community Discussion

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