LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-25-2003, 03:24 AM   #1
pongsu
LQ Newbie
 
Registered: Sep 2003
Posts: 9

Rep: Reputation: 0
PATH variable file


hi


can someone tell me about the file in the home directory that contains the PATH variable, what does it do, and how do we inspect its value
 
Old 09-25-2003, 03:44 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
it can be in any file that is executed on startup of the shell
.bashrc
.bash_login
.bash_profile
/etc/profile

type set|more
hit enter
view away.
 
Old 09-25-2003, 04:13 AM   #3
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
echo $PATH

For global settings, you might want to check out /etc/profile.d/.

Adding new folders to your path is done with:
export PATH="$PATH:/some/other/path"
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PATH variable jk21 Linux - Newbie 1 09-28-2004 02:48 PM
$path variable ? moby Linux - Newbie 3 06-01-2004 03:18 PM
PATH Variable in Mandrake JoeDuncan Linux - Distributions 4 12-27-2003 01:05 PM
why is my PATH variable screwed up? apberzerk Linux - General 2 11-07-2003 11:18 PM
the path variable mjkramer Linux - Newbie 4 10-18-2003 07:18 AM


All times are GMT -5. The time now is 12:48 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration