exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 155 discussion

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

Users have been unable to save documents to /home/tmp/temp and have been receiving the following error:

Path not found -
A junior technician checks the locations and sees that /home/tmp/tempa was accidentally created instead of /home/tmp/temp. Which of the following commands should the technician use to fix this issue?

  • A. cp /home/tmp/tempa /home/tmp/temp
  • B. mv /home/tmp/tempa /home/tmp/temp
  • C. cd /temp/tmp/tempa
  • D. ls /home/tmp/tempa
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
linux_admin
8 months, 3 weeks ago
Selected Answer: B
B. mv /home/tmp/tempa /home/tmp/temp Explanation: mv is a command in Linux used to move or rename files and directories. /home/tmp/tempa is the path of the accidentally created directory. /home/tmp/temp is the correct path of the directory where users should be saving their documents. The command mv /home/tmp/tempa /home/tmp/temp will move the directory /home/tmp/tempa to /home/tmp/temp, effectively correcting the issue.
upvoted 3 times
...
Ckl22
10 months, 3 weeks ago
Selected Answer: B
B is correct mv old-filename new-filename
upvoted 2 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