Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

EDIT:

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 stackoverflow.com Oct 3 '10 at 20:47

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

add comment

3 Answers

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
add comment

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

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.