Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I end up with an error, the command 'kaid' now says command not found, and
Code:
cannot access `/usr/bin/kaid': Too many levels of symbolic links
it's
ln -s <target> <symbol>
not
ln -s <symbol> <target>
In other words, in your second example, you make a symbolic link called /usr/bin/kaid that links to something called "kaid" which would likely be in ./ and not really be anything. You should do:
You make a link to a target---the target name always comes first---except #4 (which I do not understand)
In OPs 1st example, the order was target, link and the link worked
I think the problem has to do with using full pathnames in certain situations, but lets confirm with OP---where in fact is the target file? Is it possible that the first example worked because kaid2 is really the target?
Could you check if your right the next time you post? Its not that hard. I bet you $999999999999 you have this program (ln) too and are capable of checking yourself.
Could you check if your right the next time you post? Its not that hard. I bet you $999999999999 you have this program (ln) too and are capable of checking yourself.
timrs;
Who is this addressed to? I suddenly find that I don't know what this thread is about. You posed a question--- Do you now have the answer?
If your post is saying that someone made a mistake, perhaps you should say what the mistake was......
As I said in my other post, it has to do with specifying full path names. I just tried a few experiments.
If I link OUT of a folder, I needed to specify the full path name.
When in /opt: ln -s vpnclient /home/mherring/Desktop does not work
whereas ln -s /opt/vpnclient /home/mherring/Desktop DOES work
But if I am in /home/mherring/Desktop, I can do: ln -s /opt/vpnclient vpnclient, and it works
Thankyou, this is strange though -- did the developers do this on purpose?
As opposed to what? accident? mistake?
No, I think there is probably a rational reason for it to be that way--but I have never seen it...
The really easy way to stay out of trouble is to always link IN, using the default link name:
ln -s /path/path/target
Automatically creates the link in the current directory with the name of "target"
I think its because when ln -s 1 /dir/2 is made, the file /dir/2 is literally linked to 1, and there is no 1 in the directory 2 is in -- thats the best I can explain it
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.