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)- A87% (26)
- B3% (1)
- C7% (2)
- D3% (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.