nerdexam
LPI

117-101 · Question #161

You are experimenting with a binary in /tmp/foo.d that expects its configuration file at /etc/foo.conf. You don't want to save it there, but use a symbolic link to /tmp/foo.d/foo.conf instead. Which…

The correct answer is A. ln -s /tmp/foo.d/foo.conf /etc/foo.conf. See the full explanation below for the reasoning.

Question

You are experimenting with a binary in /tmp/foo.d that expects its configuration file at /etc/foo.conf. You don't want to save it there, but use a symbolic link to /tmp/foo.d/foo.conf instead. Which command would accomplish that?

Options

  • Aln -s /tmp/foo.d/foo.conf /etc/foo.conf
  • Bln /tmp/foo.d/foo.conf /etc/foo.conf
  • Cln -s /etc/foo.conf /tmp/foo.d/foo.conf
  • Dln /etc/foo.conf /tmp/foo.d/foo.conf

How the community answered

(33 responses)
  • A
    82% (27)
  • B
    12% (4)
  • C
    3% (1)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 117-101 Practice