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-09-2008, 08:14 PM   #1
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558

Rep: Reputation: 34
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, 08: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-09-2008, 11:31 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
In bash its frequently .bash_profile
 
Old 11-09-2008, 11:43 PM   #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



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

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

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