Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 07-05-2001, 02:22 PM   #1
Registered: Jul 2001
Location: So. Cal.
Distribution: Slackware 8.1
Posts: 55

Rep: Reputation: 15
Post profile, .bash_profile & ????

/etc/profile is ran everytime you start the computer. ~/.bash_profile is ran everytime you login. Is there a file thats ran everytime somone logs in, no matter who they are. Like each user has there own .bash_profile, so its different each time someone logs in, is there one file thats runs every time someone logs in?
Old 07-05-2001, 04:52 PM   #2
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
/etc/profile is the file you are looking for. You scripts (in /etc/rc.d or something like that depending on your distro) get run every time you boot the system. /etc/profile gets parsed everytime a user logs on, no matter who that use is, then their personal ~/.profile or ~/.bash_profile (didn't realise you could use this name!) gets parsed, possibly overriding settings gleamed from /etc/profile. Note that different shell use different personal files, so for csh/tcsh you would use ~/.cshrc - dunno about other shells...




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
/etc/profile VERSUS /home/.bash_profile carbono Linux - Newbie 12 10-12-2005 09:23 AM
bash_profile & bashrc c1p3r Linux - Newbie 0 07-15-2003 05:10 AM
kshell in path & .bash_profile dmartinez Linux - Newbie 3 03-31-2003 10:15 PM
.bash_profile & path Syncrm Linux - General 11 01-30-2002 01:49 PM
.profile & .bash_profile on $LFS cbates55 Linux - Distributions 1 01-02-2002 02:25 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:26 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
Open Source Consulting | Domain Registration