Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

where can I find these two files if I want to modify them?


when I use echo $0 I receive -tcsh but I found only .bash_profile .bash_history .bash_logout, but not .login .cshrc

share|improve this question

migrated from Oct 3 '10 at 20:47

This question came from our site for professional and enthusiast programmers.

They're in your home directory. Since they start with a "." character, ls won't show them by default, but ls -a will.

If your default shell is bash (which is typical for Linux), you may not have .cshrc or .login files -- those files are associated with csh.

If you're using csh or tcsh, but ~/.cshrc doesn't exist, it's possible that your environment is coming from a system-wide file, perhaps /etc/csh.cshrc or something similar. If you want to customize the settings for yourself, you can just create ~/.cshrc yourself if it's not already there, perhaps using the system-wide file as a starting point.

Files such as .bashrc or .bash_profile serve the same purpose for bash as .cshrc does for csh. .bash_history will contain a list of recently typed bash commands. .bash_logout contains commands to be run when you log out.

share|improve this answer
@Jim Lewis: found nothing, what can I do? – rookie Oct 1 '10 at 23:31
+1, as a non-csh user, I certainly don't have those files..... – Wrikken Oct 2 '10 at 0:09

They should be in your home directory. Try ls -a ~/.

share|improve this answer

they should be on your home directory. just do a cd ~. If you need to modify the default .login and .cshrc, check the csh.login and csh.cshrc under /etc.

share|improve this answer

You must log in to answer this question.