nerdexam
LPI

101-350 · Question #103

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

(53 responses)
  • A
    74% (39)
  • B
    4% (2)
  • C
    8% (4)
  • D
    15% (8)

Community Discussion

No community discussion yet for this question.

Full 101-350 Practice