LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 04-21-2007, 02:18 PM   #1
buddhahat
Member
 
Registered: Sep 2003
Distribution: Slackware 10, FreeBSD 6.2, Ubuntu 7.04
Posts: 60

Rep: Reputation: 15
Unable to resolve new symbolic link added to /bin directory without reboot


This is on FreeBSD 6.2 with "Minimal Install" selected.

I added a symbolic link to the /bin directory like so:

ln -s /usr/local/bin/python2.5 /bin/python

When I type ls -l /bin/python I see:

/bin/python --> /usr/local/bin/python2.5

When I type python I get "command not found" but if I type /bin/python it works fine?

Typing echo $PATH shows /bin is there. The only way to fix this was to reboot the system. Is there a way around rebooting?

Thanks for the help.
 
Old 04-21-2007, 02:45 PM   #2
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
What's your shell? Try:

Code:
rehash
 
Old 04-21-2007, 03:01 PM   #3
buddhahat
Member
 
Registered: Sep 2003
Distribution: Slackware 10, FreeBSD 6.2, Ubuntu 7.04
Posts: 60

Original Poster
Rep: Reputation: 15
shell is csh.

The rehash commad did the trick.

Thank you!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot remove symbolic link to directory. martint Linux - Newbie 6 09-17-2014 08:45 PM
apache: using symbolic link to cgi-bin executable: how-to minutes2memories Linux - Software 4 03-02-2006 02:05 AM
directory symbolic link resolution rusti999 Linux - Software 6 08-09-2004 04:13 PM
vsftpd - Cannot resolve symbolic link in browser chpchai Linux - Networking 13 05-26-2004 11:07 PM
ppp not authenticating and symbolic modem link erasing at reboot kwikle Linux - Newbie 4 03-19-2003 09:18 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 04:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration