LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-07-2004, 05:28 AM   #1
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Rep: Reputation: 30
How to edit the value of $PATH?


I know I can do it in .bash_profile. At this stage, I don't have .bash_profile file, so there must be other place that I can modify so that I can change the value of $PATH enviroment variable. So where should I look at?

Thanks
 
Old 02-07-2004, 05:38 AM   #2
Kovacs
Member
 
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607

Rep: Reputation: 31
Make a plain text file in your home directory with your favourite text editor called .bash_profile. Put these contents in it:

PATH=$PATH:/path/you/want/to/add
export PATH

You can add mulitple paths if you want, separate them with a colon. Save the file, and now all new terminals will use this PATH. You can verify it worked with
echo $PATH
If you want to change the value of path globally, edit the PATH variable in /etc/profile.
 
  


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
edit value of PATH permanently rsumbeling Linux - General 2 12-13-2004 11:57 AM
How do I edit my path? Echo Kilo Linux - General 3 12-12-2004 02:50 PM
How to edit default PATH? davidas Linux - Newbie 2 03-20-2004 06:34 AM
how do i edit my echo$PATH Laptop2250 Linux - Newbie 6 11-15-2003 12:33 PM
Install problems/Do I edit the path? Toker Linux - Newbie 15 10-24-2003 02:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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