Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GAQM Exam LCP-001 Topic 2 Question 36 Discussion

Actual exam question for GAQM's LCP-001 exam
Question #: 36
Topic #: 2
[All LCP-001 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: D

The answer should be ''Match a literal + symbol'' because there is a backslash symbol before the plus, so it should match a literal +.


Contribute your Thoughts:

Jose
1 months ago
Maybe Bob should just rename the directory to 'BobsAwesomeDir' and call it a day. That would be a lot easier than remembering all these crazy backslash commands.
upvoted 0 times
Aileen
3 days ago
User 1: You can try using command D) rmdir bob/\\bobsdir to remove the directory.
upvoted 0 times
...
...
Hyun
1 months ago
Okay, let's see... the directory is in Bob's home directory, so the right command should use the tilde (~) to represent that. I'm going with option E.
upvoted 0 times
Albina
3 days ago
User2: Yeah, that makes sense since the directory is in Bob's home directory.
upvoted 0 times
...
Adela
6 days ago
User3: Let's go with option E, rmdir ~bob/\\bobsdir.
upvoted 0 times
...
Lamar
8 days ago
User2: I agree, option E looks like the correct choice.
upvoted 0 times
...
Lai
22 days ago
User1: I think the correct command is rmdir ~bob/\\bobsdir
upvoted 0 times
...
Kirby
1 months ago
User1: I think the command should include the tilde (~) to represent Bob's home directory.
upvoted 0 times
...
...
Dante
1 months ago
I bet Bob's fingers slipped when he was trying to type the command. These things happen, but we've all been there, right?
upvoted 0 times
...
Berry
2 months ago
Wait, did Bob really create a directory called '\\bobsdir'? That's a strange name, even for a Unix admin.
upvoted 0 times
Theodora
4 days ago
D) rmdir bob/\\bobsdir
upvoted 0 times
...
Donte
9 days ago
C) rmdir ~bob/ 'bobsdir'
upvoted 0 times
...
Horace
10 days ago
B) rmdir \'bob/\\bobsdir\'
upvoted 0 times
...
Salome
14 days ago
A) rmdir 'bob/\\bobsdir'
upvoted 0 times
...
Rozella
15 days ago
D) rmdir bob/\\bobsdir
upvoted 0 times
...
Miles
20 days ago
C) rmdir ~bob/ 'bobsdir'
upvoted 0 times
...
Lillian
23 days ago
B) rmdir \'bob/\\bobsdir\'
upvoted 0 times
...
Herschel
28 days ago
A) rmdir 'bob/\\bobsdir'
upvoted 0 times
...
...
Jestine
2 months ago
Hmm, the error message says 'No such file or directory', so it's clear the directory name is not correct. Let me think this through.
upvoted 0 times
Kallie
23 days ago
B) rmdir \'bob/\\bobsdir\'
upvoted 0 times
...
Mica
25 days ago
A) rmdir 'bob/\\bobsdir'
upvoted 0 times
...
...
Crista
2 months ago
I'm not sure, but I think it's important to remember that the backslash is needed before special characters like spaces or slashes in Unix commands.
upvoted 0 times
...
Yoko
2 months ago
I agree with Georgiana, because the backslash is used to escape special characters in Unix commands.
upvoted 0 times
...
Georgiana
2 months ago
I think the answer is D) rmdir bob/\\bobsdir.
upvoted 0 times
...

Save Cancel
a