LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   sorting out .cshrc and .login files, difference of (https://www.linuxquestions.org/questions/linux-software-2/sorting-out-cshrc-and-login-files-difference-of-4175431525/)

mjepsen 10-10-2012 01:03 PM

sorting out .cshrc and .login files, difference of
 
I am trying to get a better understanding of the .cshrc files, as compared to the .login files. Got an easy way to see this?

MensaWater 10-10-2012 01:09 PM

Both are "environment" files that get loaded when the user logs in. You can put any command that goes in one in the other. Often the main difference is simply the order in which they're called. On many systems /etc/login is the GLOBAL setting (all users with csh invoke this file) whereas the $HOME/.cshrc is the LOCAL setting for the given user.

However since any environment file can also invoke other environment files it is possible that you could have others in play. If you type "man csh" on your server it will give you a good overview of files it will search for (e.g. it might be tcshrc rather than simply cshrc).


All times are GMT -5. The time now is 10:29 AM.