LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-04-2002, 12:16 AM   #1
JMC
Member
 
Registered: Apr 2002
Distribution: Mandrake 8.2
Posts: 43

Rep: Reputation: 15
Question Changing environment path.


I want to change my bash environment path to include . so I can execute programs by just typing program_name instead of ./program_name. Nothing I've done so far seems to work. My current path is -->

PATH=$PATH:$HOME/bin

I got this from the .bash_profile file. Using the command echo $PATH shows a path of something like /bin:/usr/bin:/usr/xr11rg/bin:/usr/local/bin: and then some game directories and such.

Exactly where do I make the modifications?

Thanks for your help!

jmc
 
Old 05-04-2002, 03:50 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,397

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
add it to /etc/bashrc to make it affect everyone, or ~/.bashrc to just affect yourself
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PATH environment variable moonz Red Hat 3 09-08-2005 04:10 PM
changing path environment variable iNET_boss Linux - Newbie 2 07-27-2005 04:35 PM
setting environment PATH heathpitts Linux - Newbie 26 12-03-2004 10:15 AM
Adding Java to my environment path? C8H10N4O2 Linux - Software 6 04-19-2004 01:38 PM
How to set path environment? Junior Linux - Newbie 3 02-23-2004 07:35 AM


All times are GMT -5. The time now is 07:25 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration