nerdexam
LPI

101-500 · 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. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

GNU and Unix Commands

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

(30 responses)
  • A
    87% (26)
  • B
    3% (1)
  • C
    7% (2)
  • D
    3% (1)

Explanation

You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

Topics

#symbolic links#ln command#file linking#FHS

Community Discussion

No community discussion yet for this question.

Full 101-500 Practice