Operating System - Tru64 Unix
1748154 Members
3615 Online
108758 Solutions
New Discussion юеВ

Re: Symbolic Links

 
Paul Stanard
Regular Advisor

Symbolic Links

I would like to create a symbolic link for an executable file. I would like to link the executable file /usr/local/< >/... to the users home folder /usr/users/. Any suggestions
9 REPLIES 9
Blake Roberts
Frequent Advisor

Re: Symbolic Links

The syntax would be the following:

ln -s /usr/local/ /usr/users//

Where is the name of the file that you want to link.

Regards,
--Blake
Michael Schulte zur Sur
Honored Contributor

Re: Symbolic Links

Hi Paul,

Blake pretty much tells it.
An alternative would be:
cd /usr/users//
ln -s /usr/local/

for more info see man ln.

Michael
Paul Stanard
Regular Advisor

Re: Symbolic Links

And how could i reverse this if i needed to
Michael Schulte zur Sur
Honored Contributor

Re: Symbolic Links

Hi,

what do you mean by reverse?
rm?
or exchange both ends?

Michael
Mark Grant
Honored Contributor

Re: Symbolic Links

Paul,

If you delete the symbolic link, you have "reversed" it, i.e. gone back to how it was. Creating a symbolic link merely creates a file that is a pointer to another file. A file can have as many symbolic links pointing at it as you want and they will even exist after the original file is deleted (pointing at nothing)
Never preceed any demonstration with anything more predictive than "watch this"
Ralf Puchner
Honored Contributor

Re: Symbolic Links

I'm just wondering what information is not described within the man-page of ln.....
Help() { FirstReadManual(urgently); Go_to_it;; }
Michael Schulte zur Sur
Honored Contributor

Re: Symbolic Links

Hi Ralf,

that's why I have already pointed him to it. ;-)

Michael
Ralf Puchner
Honored Contributor

Re: Symbolic Links

Funny, waiting for an answer which is available by simply using the man-page ;-)

Maybe it is time to save diskspace by removing the whole documentation and man-pages ;-)

Help() { FirstReadManual(urgently); Go_to_it;; }
Paul Stanard
Regular Advisor

Re: Symbolic Links

Yes i use the man pages but I really just like for someone else to confirm what I am about to do. I use this forum for confirmation purposes.