Welcome to the most active Linux Forum on the web.
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 11-25-2005, 06:07 PM   #1
Registered: Oct 2004
Posts: 309

Rep: Reputation: 30
permenantly set an environment variable?

i want to update my $PATH to include a new folder. i can do this with "export PATH=$PATH:newfolder" but how can i make it so that this new folder is always in the path? is there some startup script i can edit that sets the path? i'm running slackware 10.2
Old 11-25-2005, 06:39 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
You could edit ~/.profile and add that command at the end of the file.
Old 11-25-2005, 07:39 PM   #3
Registered: Oct 2005
Distribution: zenwalk
Posts: 88

Rep: Reputation: 15
edit your etc/profile file. i supose that u don't have .profile in home directory. profile in etc directory works global, so it should work.
Old 11-25-2005, 11:28 PM   #4
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
/etc/profile will affect all users. If you want to just have it for one user, put it in their ~/.bash_profile


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
how to set environment variable pranith Linux - Newbie 1 01-27-2005 11:23 PM
How to set a value of environment variable? ukrainet Linux - Newbie 1 12-28-2004 04:33 AM
set environment variable Jongi Linux - Newbie 7 03-01-2004 04:34 AM
How to set an environment variable? dantemarmol Linux - Newbie 7 08-22-2003 10:59 AM
Set Environment Variable lloyd_stevens Linux - Software 1 07-30-2003 12:38 PM > Forums > Linux Forums > Linux - Newbie

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