nerdexam
CompTIACompTIA

XK0-005 · Question #409

XK0-005 Question #409: Real Exam Question with Answer & Explanation

The correct answer is B: mv /home/tmp/tempa /home/tmp/temp. The mv /home/tmp/tempa /home/tmp/temp command will fix the issue of the misnamed directory. This command will rename the directory /home/tmp/tempa to /home/tmp/temp, which is the expected path for users to save their documents. The cp /home/tmp/tempa /home/tmp/temp command will n

Troubleshooting

Question

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?

Options

  • Acp /home/tmp/tempa /home/tmp/temp
  • Bmv /home/tmp/tempa /home/tmp/temp
  • Ccd /temp/tmp/tempa
  • Dls /home/tmp/tempa

Explanation

The mv /home/tmp/tempa /home/tmp/temp command will fix the issue of the misnamed directory. This command will rename the directory /home/tmp/tempa to /home/tmp/temp, which is the expected path for users to save their documents. The cp /home/tmp/tempa /home/tmp/temp command will not fix the issue, as it will copy the contents of /home/tmp/tempa to a new file named /home/tmp/temp, not a directory. The cd /temp/tmp/tempa command will not fix the issue, as it will change the current working directory to /temp/tmp/tempa, which does not exist. The ls /home/tmp/tempa command will not fix the issue, as it will list the contents of /home/tmp/tempa,

Topics

#Linux commands#File system management#mv command#Directory renaming

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions