LinuxQuestions.org
Help answer threads with 0 replies.
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, 07: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, 07:39 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
You could edit ~/.profile and add that command at the end of the file.
 
Old 11-25-2005, 08: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-26-2005, 12:28 AM   #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


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


All times are GMT -5. The time now is 10:23 AM.

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