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:

Billye
1 months ago
I bet the correct answer is 'D) rm -rf /*' just to see if anyone actually tries that. That would be a real knee-slapper!
upvoted 0 times
...
Sharee
1 months ago
Ah, the good old cp /a/* . trick. Classic move, but I'm not sure if that will preserve the directory structure. Hmm, tough choice.
upvoted 0 times
Lavelle
11 days ago
User 1: I think the best option would be E) cp -rf /A/* /b/
upvoted 0 times
...
...
Cecily
2 months 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
1 months ago
User1: Good idea, better safe than sorry.
upvoted 0 times
...
Jani
1 months ago
User3: Maybe try A) cp /a/* . instead, just to be safe.
upvoted 0 times
...
Ryann
1 months ago
User2: Yeah, I've heard it can overwrite files without asking.
upvoted 0 times
...
Rory
2 months ago
User1: Wait, are you sure about that? -Rf can be dangerous.
upvoted 0 times
...
...
Cordelia
2 months 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
2 months 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
Leonora
24 days ago
I agree, let's go with option B and remove the -f flag.
upvoted 0 times
...
Rory
26 days ago
I think option B is correct, we need to use mv to move the files and directories.
upvoted 0 times
...
Rossana
29 days ago
User2: I agree, using mv without any extra flags might prompt for confirmation.
upvoted 0 times
...
Ashlyn
1 months ago
User1: Option B is correct, the -f flag is used to force the move without prompting.
upvoted 0 times
...
...
Teddy
2 months 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
2 months 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
2 months 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
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77