symlink for a command - affected by its location
Patrick Asselman
iceblink at seti.nl
Thu Jun 6 09:45:10 UTC 2013
On 2013-05-19 05:15, Sabniveesu Shashank wrote:
> ls -l /usr/local/bin/node
> --results in--
>
> lrwxrwxrwx 1 root root 46 May 17 19:32 /usr/local/bin/node ->
> /home/user1/node-v0.10.6-linux-x86/bin/node
>
> I don't have it now in /usr/bin, but when it was, the ls -l was
> checked and verified to be the same
(please don't top post when replying)
If the command does not work, try a "which node" to see whether the
link is found in your path.
I suspect that for some reason /usr/bin is not in your PATH whereas
/usr/local/bin is.
Best regards,
Patrick Asselman
> On Sun, May 19, 2013 at 4:25 AM, <tk at sawada-co.tk> wrote:
>
>> On Sat, 18 May 2013 19:23:31 +0530
>> Subject: Re: symlink for a command - affected by its location
>>
>> Sabniveesu Shashank <shashank16392 at gmail.com> Wrote:
>>
>> > On Sat, May 18, 2013 at 4:30 AM, k t <tk at sawada-co.tk> wrote:
>> >
>> >> 2013/5/17 Sabniveesu Shashank <shashank16392 at gmail.com>:
>> >> >
>> >> > On Fri, May 17, 2013 at 7:52 PM, Avi Greenbury <lists at avi.co>
>> wrote:
>> >> >>
>> >> >> Sabniveesu Shashank wrote:
>> >> >> > I created a symlink for an executable in /usr/bin which
>> didn't work.
>> >> But
>> >> >> > I
>> >> >> > created the same in /usr/local/bin which worked the way I
>> expected.
>> >> How
>> >> >> > are
>> >> >> > these two different?
>> >> >>
>> >> >> Where was the symlink to, how did you create it, and what
>> happened
>> >> >> when "it didn't work"? Do you still have the creation commands
>> in your
>> >> >> history?
>> >> >>
>> >> >> --
>> >> >> Avi
>> >> >>
>> >> >> --
>> >> >
>> >> > Actual location of command- ~/Sources/nodejs/bin/node
>> >> > Command - cd "-->till 'bin "
>> >> > sudo ln -s node /usr/bin [executing 'node'
>> didn't
>> >> work]
>> >> > sudo ln -s node /usr/local/bin [executing
>> 'node'
>> >> worked
>> >> > as expected]
>> >>
>> >> What happened when "it didn't work"?
>> >> command not found : node ???
>> > yes k t
>>
>> please confirm /usr/bin/node ,
>> # ls -l /usr/bin/node
>>
>> if symbolic link of /usr/bin/node is not correct.
>> you should execute "ln -s" with full path.
>>
>> # sudo ln -s /path/to/node /usr/bin
>>
>> --
>> tk
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users [1]
>
>
>
> Links:
> ------
> [1] https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
More information about the ubuntu-users
mailing list