LinuxQuestions.org
Visit Jeremy's Blog.
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, 04: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, 04:44 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,305

Rep: Reputation: 66
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, 05: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 03:48 PM
$path variable ? moby Linux - Newbie 3 06-01-2004 04:18 PM
PATH Variable in Mandrake JoeDuncan Linux - Distributions 4 12-27-2003 02:05 PM
why is my PATH variable screwed up? apberzerk Linux - General 2 11-08-2003 12:18 AM
the path variable mjkramer Linux - Newbie 4 10-18-2003 08:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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