ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 176 - XK0-005 discussion

Report
Export

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
Answers
A.
cp /home/tmp/tempa /home/tmp/temp
B.
mv /home/tmp/tempa /home/tmp/temp
Answers
B.
mv /home/tmp/tempa /home/tmp/temp
C.
cd /temp/tmp/tempa
Answers
C.
cd /temp/tmp/tempa
D.
ls /home/tmp/tempa
Answers
D.
ls /home/tmp/tempa
Suggested answer: B

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, not rename it. Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 12:

Managing Files and Directories, page 413.

asked 02/10/2024
Sergey Aleksandrov
50 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first