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 4 Question 56 Discussion

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

As root you have navigated to directory /B. You wish to move all of the files and directories from directory /A to directory /B. Which of the following options would be the most appropriate command line to execute this task?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Cecily
18 days ago
Haha, C is classic. Move everything with -Rf, what could possibly go wrong? I'm just going to go ahead and try that one.
upvoted 0 times
Doug
4 days ago
User1: Good idea, better safe than sorry.
upvoted 0 times
...
Jani
5 days ago
User3: Maybe try A) cp /a/* . instead, just to be safe.
upvoted 0 times
...
Ryann
8 days ago
User2: Yeah, I've heard it can overwrite files without asking.
upvoted 0 times
...
Rory
11 days ago
User1: Wait, are you sure about that? -Rf can be dangerous.
upvoted 0 times
...
...
Cordelia
21 days ago
I think E is the way to go. Copying the files recursively with -rf seems like the safest option to me.
upvoted 0 times
...
Micah
23 days ago
Option B looks good, but I'm not sure about the -f flag. Shouldn't we just use mv without any extra flags?
upvoted 0 times
...
Teddy
25 days ago
That makes sense too, but I think E) cp -rf /A/* /b/ is safer in case we need to keep a backup of the files in /A.
upvoted 0 times
...
Adolph
27 days ago
I disagree, I believe the answer is B) mv -f /A/* because we want to move the files and directories, not copy them.
upvoted 0 times
...
Teddy
29 days ago
I think the correct answer is E) cp -rf /A/* /b/ because it copies all files and directories from /A to /B.
upvoted 0 times
...

Save Cancel
a