Exam4Training

Which of the following commands should the administrator use?

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
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
D .   rsync -a /usr/local/share/app-a /usr/local/bin/app-a

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 command ln -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.

References:

[CompTIA Linux+ Study Guide], Chapter 3: Working with Files, Section: Creating Links [How to Create Symbolic Links in Linux]

Latest XK0-005 Dumps Valid Version with 136 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version