View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-16-2003, 06:57 AM   #1
LQ Newbie
Registered: Aug 2003
Location: New Zealand
Distribution: Mandrake Linux 9.1
Posts: 2

Rep: Reputation: 0
.bashrc vs .bash_profile

I am looking at both .bashrc and .bash_profile in order to add some things to my path. What is the difference between them? Is it preferable to use one over the other for certain situations?

I was also looking at the universal profile too (I'm adding java to my path if it makes a difference), I'm the only user on my computer, but I may well want root to have access to the same things I do. I was just a bit scared to change the universal profile because what is there already is doing some checking via if statements before adding bits to the path. I don't quite understand yet what is going on well enough to do that kind of checking. I guess it's checking to see if certain files or directories exist before adding them to the path.

Can anyone advise me on the above?
Old 08-16-2003, 01:52 PM   #2
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
If you want root to have access too just put it in /etc/profile on a line of it's own, just don't delete anything that's already in it and you can't go far wrong



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
bashrc vs. bash_profile mikeshn Linux - General 9 02-10-2008 02:46 PM
bashrc or bash_profile ? ARCIS_house Linux - Newbie 6 07-21-2005 03:09 PM
.bashrc .bash_profile Soulful93 Slackware 4 05-03-2005 04:02 AM
~/.bashrc, ~/.bash_profile Sinope Linux - Newbie 6 08-17-2004 03:40 AM
.bashrc or .bash_profile? statmobile Linux - Newbie 1 02-04-2004 10:08 PM

All times are GMT -5. The time now is 08:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration