Exam 101-500 Topic 3 Question 214 Discussion
Actual exam question for Lpi's 101-500 exam
Question #: 214
Topic #: 3
Question #: 214
Topic #: 3
A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?
Suggested Answer: E Vote an answer
The rmdir command removes an empty directory. To remove a directory whose name contains a backslash, the backslash must be escaped with another backslash. Therefore, the correct command is rmdir ~/\dir. The other commands will either fail to find the directory or interpret the backslash as part of a path name.
References:
* [LPI Linux Essentials - 1.3 Basic Editing]
* [LPI Linux Essentials - 1.4 I/O Redirection]
* [LPI Linux Essentials - 1.5 Manage Simple Partitions and Filesystems]
References:
* [LPI Linux Essentials - 1.3 Basic Editing]
* [LPI Linux Essentials - 1.4 I/O Redirection]
* [LPI Linux Essentials - 1.5 Manage Simple Partitions and Filesystems]
by Noel at May 18, 2026, 12:41 AM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).