Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-26-2005, 06:43 PM   #1
LQ Newbie
Registered: Jun 2005
Posts: 17

Rep: Reputation: 0
changing path environment variable

i'm running redhat9, 2.4.20-8 with bashshell; i'm trying to permanently change my path environment variable but it's not taking. i've used:

PATH=$PATH:/<new path ; export PATH

can anyone tell me what is wrong with this?

Old 07-27-2005, 04:38 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,683

Rep: Reputation: 219Reputation: 219Reputation: 219
Moved: This thread is more suitable in Linux-Newbie and has been moved accordingly to help your thread/question get the exposure it deserves.

When you change PATH this way, the result is used only for this session. When you logout (or run another terminal) settings will be as before. When you want to have the change permanent, you need to add the command you use to change PATH to one of starting scripts. If you wat this only for your user, check $HOME/.bash_profile. If you want to use it for all users, edit /etc/profiles.
Old 07-27-2005, 05:35 PM   #3
LQ Newbie
Registered: Jun 2005
Posts: 17

Original Poster
Rep: Reputation: 0
thank you. .


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
PATH environment variable moonz Red Hat 3 09-08-2005 05:10 PM
Modifying the PATH environment variable brunnopessoa Linux - Newbie 11 11-03-2004 11:23 PM
edit path environment variable to include current working directory alb1954 Linux - Newbie 8 07-12-2004 12:26 AM
which path do the environment variable files reside in ycli00 Linux - General 1 03-03-2004 02:57 AM
how do I edit the $PATH environment variable in RH7.3 needamiracle Linux - Software 3 07-02-2002 10:19 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:21 PM.

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