LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   profile, .bash_profile & ???? (https://www.linuxquestions.org/questions/linux-general-1/profile-bash_profile-and-3987/)

ChimpFace9000 07-05-2001 02:22 PM

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?

jharris 07-05-2001 04:52 PM

/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...

HTH

Jamie...


All times are GMT -5. The time now is 08:03 AM.