LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-05-2006, 08:23 PM   #1
Freestone
Member
 
Registered: Jan 2003
Location: Brighton, Michigan
Distribution: FC5
Posts: 114

Rep: Reputation: 15
creating a new path for scripts


I have, over a period of time, written a bunch of differeint scripts that have actually been very helpful. I am always tweaking them and goofing around with them and all of them are located in /bin and I want to move them. I created a directory... /scripts and I put all of the scripts that I have written in there and I want to be able to utilize those scripts without having to cd into /scripts.
I added '/scripts' to $PATH in ~/.bash_profile, then 'sourced' .bash_profile and no luck. After I did this and say I was in /home/bob and typed the name of a script that is located in /script, I got the message 'command not found'.
How do I add a newly created directory to my path so the scripts will be accessilble from the command line?
 
Old 10-05-2006, 08:30 PM   #2
Freestone
Member
 
Registered: Jan 2003
Location: Brighton, Michigan
Distribution: FC5
Posts: 114

Original Poster
Rep: Reputation: 15
I found the answer after I posted. I added the path to ~/.bashrc and sourced it and all is well.

Thanks to those of you who thought about replying!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SLAX scripts creating live CD based on SimplyMEPIS 3.4 w/ 2.6.15-1: "init not found" lefty.crupps Slackware 1 03-31-2006 08:15 PM
Linux is bizarre--path informations of scripts apachedude Linux - Software 3 12-31-2005 02:49 AM
scripts can't find path corbis_demon Linux - General 2 09-08-2004 07:11 PM
put my scripts to PATH Boby Linux - Newbie 1 06-14-2004 01:01 PM
Changing PATH on the fly in BASH scripts pioniere Programming 1 06-17-2003 05:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:47 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration