LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-27-2004, 02:15 AM   #1
prital
LQ Newbie
 
Registered: Dec 2004
Posts: 24

Rep: Reputation: 15
"export" doesn't work


Hi,
I'm working with RedHat 8. I try to update the PATH variable, in a bash shell, as following:
PATH=$PATH:/bin/bla:/bin/kuku
export PATH
As a result, the PATH is changed only for the current window. This is problwem, because I want the PATH update to be global change.
How can I update the PATH?

Thank you.
 
Old 12-27-2004, 02:26 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
You'd need to update your shell configuration files and relogin.
 
Old 12-27-2004, 02:30 AM   #3
prital
LQ Newbie
 
Registered: Dec 2004
Posts: 24

Original Poster
Rep: Reputation: 15
I'm new in linux.
What exactly should I do?
 
Old 12-27-2004, 02:54 AM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Well, it may depend on your distro, other details in your files, and what exactly you want to do. If you want to make this take effect for all users, something like what you typed at the command line:
PATH=$PATH:/bin/bla:/bin/kuku
export PATH
in /etc/profile or, if you just want it for yourself, putting it in ~/.bash_profile and/or ~/.bashrc.

I actually put
export PATH=/blah
all in one go, but either works.
 
  


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
chrooted user: "write" and "talk" don't work. ldp Linux - Software 2 04-12-2005 03:05 AM
"depmod" and "modprobe" commands don't work The1PatO Fedora 7 06-10-2004 01:10 PM
"<" ">" Keyboard keys on Toshiba Satellite 1005-s157 dont work RodCas Linux - Laptop and Netbook 1 05-08-2004 05:22 PM
How does "export" command work? sitg Linux - Networking 1 03-16-2004 12:38 AM
<input type="button" disabled="true" > does not work in ns4.7 or 4.9 cybercop12us Programming 2 11-29-2002 09:31 AM


All times are GMT -5. The time now is 04:25 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