exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 358 discussion

Actual exam question from CompTIA's XK0-005
Question #: 358
Topic #: 1
[All XK0-005 Questions]

A Linux administrator is tasked with moving files in a database server. The administrator must not overwrite any existing files. Which of the following commands would indicate that the file already exists?

  • A. mv –i filename /tmp/backup
  • B. mv –b filename /tmp/backup
  • C. mv –n filename /tmp/backup
  • D. mv –f filename /tmp/backup
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
lexdaniel
1 week, 1 day ago
Selected Answer: A
-n prevents the files from being overwritten. However the question asks "which command would indicate that the file already exists". The only command here that would tell the user that the file already exists is -i (interactive), where it would prompt the user if they want to overwrite an existing file.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago