LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-10-2012, 02:03 PM   #1
mjepsen
LQ Newbie
 
Registered: Oct 2012
Posts: 1

Rep: Reputation: Disabled
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?
 
Old 10-10-2012, 02:09 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,821
Blog Entries: 15

Rep: Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664
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).
 
  


Reply


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
why to commit .cshrc "source .cshrc" file in every new shell session simer_anand88 Mandriva 3 10-23-2009 10:44 AM
Plz describe and elaborate about profile: files like .cshrc, etc.. SaleemS Linux - Software 2 06-10-2008 12:33 AM
.cshrc and .login files jenser2 Linux - Newbie 2 03-19-2008 06:05 AM
have my .cshrc or .login invoke bash mattie_linux Linux - Newbie 1 06-06-2007 04:16 PM
.login, .bashrc or .cshrc ??? tuananhbirm Linux - General 1 01-20-2005 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration