LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-25-2005, 06:07 PM   #1
slinky2004
Member
 
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
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
You could edit ~/.profile and add that command at the end of the file.
 
Old 11-25-2005, 07:39 PM   #3
den15
Member
 
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
jrdioko
Member
 
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
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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