ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 214 - XK0-005 discussion

Report
Export

A Linux administrator needs to create a symlink for /usr/local/bin/app-a, which was installed in /usr/local/share/app-

a. Which of the following commands should the administrator use?

A.
In -s /usr/local/bin/app-a /usr/local/share/app-a
Answers
A.
In -s /usr/local/bin/app-a /usr/local/share/app-a
B.
mv -f /usr/local/share/app-a /usr/local/bin/app-a
Answers
B.
mv -f /usr/local/share/app-a /usr/local/bin/app-a
C.
cp -f /usr/local/share/app-a /usr/local/bin/app-a
Answers
C.
cp -f /usr/local/share/app-a /usr/local/bin/app-a
D.
rsync -a /usr/local/share/app-a /usr/local/bin/app-a
Answers
D.
rsync -a /usr/local/share/app-a /usr/local/bin/app-a
Suggested answer: A

Explanation:

To create a symlink for /usr/local/bin/app-a, which was installed in /usr/local/share/app-a, the administrator can use the commandln -s /usr/local/share/app-a /usr/local/bin/app-a(A). This will create a symbolic link named /usr/local/bin/app-a that points to the original file /usr/local/share/app-a. The other commands will not create a symlink, but either move, copy, or synchronize the file.Reference:

[CompTIA Linux+ Study Guide], Chapter 3: Working with Files, Section: Creating Links

[How to Create Symbolic Links in Linux]

asked 02/10/2024
jose fajardo
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first