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

CompTIA Exam XK0-005 Topic 4 Question 39 Discussion

Actual exam question for CompTIA's XK0-005 exam
Question #: 39
Topic #: 4
[All XK0-005 Questions]

overwrite any existing files. Which of the following commands would indicate that the file already exists?

Show Suggested Answer Hide Answer
Suggested Answer: A

The -i option stands for 'interactive' and it prompts before overwriting any existing files. This ensures that no existing files are accidentally overwritten during the move operation.


Contribute your Thoughts:

Robt
11 days ago
Haha, the -f flag is a classic 'force it through' move. But that's not what we want here. We need to be more careful with existing files.
upvoted 0 times
...
Alfreda
14 days ago
I think option C is the way to go. The -n flag is the only one that checks for existing files before moving them.
upvoted 0 times
Staci
3 days ago
I think option B might also work, as the -b flag could indicate that the file already exists.
upvoted 0 times
...
Mammie
4 days ago
I agree, option C is the correct one. It checks for existing files before moving them.
upvoted 0 times
...
...
Miriam
21 days ago
The -n flag is the correct answer. It prevents overwriting existing files during the move operation.
upvoted 0 times
...
Stephaine
24 days ago
Ha! This is a tricky one. I bet the answer is D, -f, because who needs confirmation when you can just bulldoze through and delete everything in your path?
upvoted 0 times
...
Lauran
28 days ago
But -n option is used to not overwrite existing files, so I think C is the right choice
upvoted 0 times
...
Rashad
1 months ago
Hmm, I'm not sure about this one. Maybe option B, -b, would be a good choice to create a backup file instead of overwriting the original?
upvoted 0 times
Noble
11 days ago
I think option B is correct because it creates a backup file.
upvoted 0 times
...
...
Margret
1 months ago
I'd go with option A, -i. It would prompt me before overwriting the file, which is always a good idea when dealing with important data.
upvoted 0 times
...
Pedro
1 months ago
I disagree, I believe the correct answer is D) mv -f filename /tmp/backup
upvoted 0 times
...
Mollie
1 months ago
Option C, -n, seems like the most logical choice here. It would prevent overwriting the existing file in the backup directory.
upvoted 0 times
Onita
17 days ago
I always use option A, -i, just to be sure I don't accidentally overwrite anything.
upvoted 0 times
...
Annamaria
22 days ago
Option B, -b, might create a backup of the existing file before overwriting it.
upvoted 0 times
...
Glenn
23 days ago
I think option D, -f, would just overwrite the existing file.
upvoted 0 times
...
Raelene
28 days ago
I agree, option C is the safest choice.
upvoted 0 times
...
...
Lauran
2 months ago
I think the answer is C) mv -n filename /tmp/backup
upvoted 0 times
...

Save Cancel