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?
A.
ln -s /tmp/foo.d/foo.conf /etc/foo.conf
B.
ln /tmp/foo.d/foo.conf /etc/foo.conf
C.
ln -s /etc/foo.conf /tmp/foo.d/foo.conf
D.
ln /etc/foo.conf /tmp/foo.d/foo.conf
Explanation/Reference:
To create a symbolic link (symlink) you need to specify the -s option for the command ln.
The correct syntax for ln is
ln -s <original> <symlink>
I agree with the answer.
would you please explain this becasue right answer is “C”
= /etc/foo.conf
= /tmp/foo.d/foo.conf
answer is: “C”
original file; /etc/foo.conf
symlink file; /tmp/foo.d/foo.conf
NO!, A is OK
original file (that exists); /tmp/foo.d/foo.conf
symlink file (does not exist and therefore must be created as a link); /etc/foo.conf
Link: /etc/foo.conf -> /tmp/foo.d/foo.conf
Well thanks for comment; still confused plz check this link where he also answer this question;go to question:05
http://www.proprofs.com/quiz-school/story.php?title=linux-lpi-117101-9-9
A is OK,…
In this link have several questions answered wrongly, just test.
ls /etc/foo.conf
ls: cannot access ‘/etc/foo.conf’: No such file or directory
ln -s /tmp/foo.d/foo.conf /etc/foo.conf
ls -lt /etc/foo.conf
lrwxrwxrwx 1 root root 19 Jun 26 16:35 /etc/foo.conf -> /tmp/foo.d/foo.conf
thank you so much;appreciated
Busindre;obviously here i’ve found useful question but do u have more dumps…..?Infact i’ve to go for LX-103 after a few days;so any help sh’d be much obliged
You’re welcome, currently, in my opinion, the best to prepare for the exam are these links:
http://www.aiotestking.com/linux/category/exam-117-101-lpi-level-1-exam-101-junior-level-linux-certification-part-1-of-2-update-november-19th-2014/
http://www.aiotestking.com/linux/category/exam-117-102-lpi-level-1-exam-102-junior-level-linux-certification-part-2-of-2/
http://www.aiotestking.com/comptia/category/exam-lx0-103-comptia-linux-powered-by-lpi-exam-1/
http://www.aiotestking.com/comptia/category/exam-lx0-104-comptia-linux-powered-by-lpi-exam-2-update-january-6th-2016/