<div dir="ltr">My mnemonic device is to remember that the first argument is what you want the symlink to *contain*; the second is the object you want to *create* and things won't work right if it already exists.<div><br></div><div> -- jmcg</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 14, 2015 at 1:01 PM, Bruce Labitt <span dir="ltr"><<a href="mailto:bruce.labitt@myfairpoint.net" target="_blank">bruce.labitt@myfairpoint.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><div><div class="h5">
<div>On 11/14/2015 12:36 PM, Kyle Smith
wrote:<br>
</div>
<blockquote type="cite">I like to remember it as:<br>
<br>
ln -s thing-I-want-a-symlink-to where-I-want-to-put-it<br>
<br>
It's helps to remember, too, the reason for the order is that the
second option isn't required. It will put a symlink with the same
base name in your current working directory without it.<br>
<div class="gmail_quote">
<div dir="ltr">On Sat, Nov 14, 2015 at 12:31 PM Bruce Labitt
<<a href="mailto:bruce.labitt@myfairpoint.net" target="_blank">bruce.labitt@myfairpoint.net</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Confused about this, so
I'd like to ask, before I mess things up. I am attempting
to follow the instructions on <br>
<a href="http://askubuntu.com/questions/693145/installing-cuda-7-5-toolkit-on-ubuntu-15-10" target="_blank">http://askubuntu.com/questions/693145/installing-cuda-7-5-toolkit-on-ubuntu-15-10</a><br>
<br>
I'd like to create a symbolic link from cc (which is a
symlink) to /opt/compiler_cuda/gcc<br>
<br>
<code>cc -> /opt/compiler_cuda/gcc<br>
<br>
</code>So the command should be: sudo ln -s cc
/opt/compiler_cuda/gcc ? Or reverse the arguments?<br>
<br>
Sorry about this primitive question, sometimes I get
confused about the order. As I have found online, the
description is<br>
<tt>ln -s /path/to/file path/to/symlink</tt>. However, this
still confuses me. Which is which in my example?<br>
<br>
Can someone enlighten me? TIA.<br>
</div>
_______________________________________________<br>
gnhlug-discuss mailing list<br>
<a href="mailto:gnhlug-discuss@mail.gnhlug.org" target="_blank">gnhlug-discuss@mail.gnhlug.org</a><br>
<a href="http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/" rel="noreferrer" target="_blank">http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/</a><br>
</blockquote>
</div>
</blockquote>
<br></div></div>
Pardon my denseness (density?), but what you have shown is still
confusing to me. <br>
<br>
ln -s thing-I-want-a-symlink-to where-I-want-to-put-it <-- I
don't understand this :(<br>
<br>
In my case, I want any reference to cc to point to
/opt/compiler_cuda/gcc. It turns out /opt/compiler_cuda/gcc will be
a symlink as well. Eventually the cc reference will end up pointing
to gcc-4.9, since CUDA7.5 does not support gcc5.<br>
<br>
Is it<br>
1) ln -s cc /opt/compiler_cuda/gcc or<br>
2) ln -s /opt/compiler_cuda/gcc cc<br>
<br>
Which one does what I want? Seriously confused.<br>
<br>
</div>
<br>_______________________________________________<br>
gnhlug-discuss mailing list<br>
<a href="mailto:gnhlug-discuss@mail.gnhlug.org">gnhlug-discuss@mail.gnhlug.org</a><br>
<a href="http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/" rel="noreferrer" target="_blank">http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/</a><br>
<br></blockquote></div><br></div>