LinuxQuestions.org
Register a domain and help support LQ
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-09-2008, 09:14 PM   #1
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 436

Rep: Reputation: 33
How to find the path statement.


Hello all,

Could some one please tell me how to find the path statement for my user id. Can't seem to find the folder or menber where this might be.

Thanks.
 
Old 11-09-2008, 09:19 PM   #2
abolishtheun
Member
 
Registered: Mar 2008
Posts: 183

Rep: Reputation: 31
your path is an environment variable, and you can see what it is by doing "echo $PATH". It is not tied to your user account. It is generally set in /etc/profile and /home/youraccount/.profile (if you are using bash). To add something to your path, you can run the command "export PATH=/some/new/path/bin:$PATH" which effectively appends something to your path variable (again, this is for bash). To make this command run every time you log in, but it in your .profile file.
 
Old 11-10-2008, 12:31 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
In bash its frequently .bash_profile
 
Old 11-10-2008, 12:43 AM   #4
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
Also possibly in .bashrc

.bash_profile and .bashrc are 'sourced' in varying combination depending on the type of login. I don't recall the specifics atm. Anyway look at files beginning with . in the home directory of the user account in question.
 
  


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
Problem with if statement in a find -exec statement romsieze Programming 2 10-02-2008 01:38 AM
PATH statement from file granny Linux - Newbie 8 04-21-2005 01:58 PM
please tell me if my path statement is correct on RH 7.3 ergo_sum Linux - Newbie 9 12-13-2003 12:41 AM
PATH statement editing? cottonmouth Linux - General 2 08-17-2003 09:00 PM
What file hold the PATH statement billkris Linux - General 7 02-11-2003 11:30 PM


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