How to use ln -s to make a symbolic link
Posted on 1998-07-16
I am trying to link a file in one directory to another file in another directory. I read the man ln and it discribed the command:
/usr/bin/ln [-fns] Source_file [Target]
Now, I understand that the first part is actual the command i.e. /usr/bin/ln
and the [-fns] are the attributes or perameters to the command, i.e. in this case -s
Is the Source_File the file you start from and the Target the file you want to go to?
Also is the /usr/bin/ actually part of the command or is that an example of a path and command, i.e. if I was already in the directory of the source file would I input just ln -s or is the /usr/bin/ln -s the whole command?
Please respond in as much plan english as possible I am new to Unix. The purpose of this question is that I installed a cgi chat program in my cgi-bin and the install instructions said that since the cgi-bin is configured not to allow HTML files to be accessed in the cgi-bin, when the cgi chat program makes the index.html file in the cgi-bin a copy of that file has to be put in the public_html directory and then linked symbolically to the original in the cgi-bin.