nerdexam
CompTIA

XK0-005 · Question #607

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?

The correct answer is A. ln -s /usr/local/bin/app-a /usr/local/share/app-a. 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…

System Management

Question

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?

Options

  • Aln -s /usr/local/bin/app-a /usr/local/share/app-a
  • Bmv -f /usr/local/share/app-a /usr/local/bin/app-a
  • Ccp -f /usr/local/share/app-a /usr/local/bin/app-a
  • Drsync -a/usr/local/share/app-a /usr/local/bin/app-a

How the community answered

(26 responses)
  • A
    92% (24)
  • B
    4% (1)
  • D
    4% (1)

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.

Topics

#Linux commands#Symbolic links#File system management#ln command

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice