LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-14-2004, 11:43 AM   #1
Boby
Member
 
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
put my scripts to PATH


Hello!

I wrote some scripts and copied them to /home/boby/scripts. Now I want to run them directly from the shell and not /home/boby/scripts/script1.sh or when I'm in the current directory to use ./script1.sh. I want to write only script1.sh whereever I am and it should start. To copy them to /usr/bin ... I don't want it.

Thank you!

Boby

Last edited by Boby; 06-14-2004 at 11:44 AM.
 
Old 06-14-2004, 12:01 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Add desired path to the ~/.bashrc
http://www.linuxquestions.org/questi...ht=path+bashrc
 
  


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
Where do I put my cgi-bin scripts? BrianK Linux - Software 2 10-12-2005 10:59 PM
Where to put mldonkey scripts? Aioth Slackware 2 06-19-2004 08:29 AM
Where to put protected scripts in Apache GoTrolling Linux - Software 4 01-16-2004 01:04 PM
How do I put my programs in my PATH? grenal Linux - Newbie 2 10-12-2003 03:08 AM
How do i put a C compiler in my $PATH BajaNick Programming 4 10-08-2003 03:33 AM

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

All times are GMT -5. The time now is 06:23 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
Open Source Consulting | Domain Registration