Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-19-2006, 04:54 AM   #1
Registered: Jun 2006
Location: Galway
Distribution: Suse 10.1
Posts: 114

Rep: Reputation: 15
Where is .cshrc?


Running Suse 10.0 on an x86_64 machine. Have been using the bash shell, which is of course the default shell. I've just installed some software that required me to run it's particular installation script from the csh - so I simply changed shells temporarily >csh and carried on from there. All went well.

To run the actual program in question now I have to change to the csh and then 'source...../setup'

My questions are :

1. Where can I find the .cshrc file to put this 'source....' line into? It's not in my home directory with .bashrc and 'find' has failed to turn anything up.

2. Even if I put this line into .cshrc, is this file run everytime I change shells - from bash to csh? I really don't want to change shells permanently.

3. I tried doing something like this in .bashrc :

alias myname="csh;source...../setup"

but I reckon that this is a bit wacky! Would be grateful for any help. God forbid I actually have to type csh followed by source..../setup evertime I want to run the thing...

Old 09-19-2006, 08:10 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,896

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
From a console,

cd /etc

ls *.cshrc

But, in case it's in a subdirectory, you could also try

find /etc -name '*.cshrc' -type f
Old 09-19-2006, 09:58 PM   #3
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
.cshrc should go in your home directory. If it isn't there, you can simply create it.

.cshrc has the same function as .bashrc - it is read each time you enter a non-login shell. Therefore, everytime you open a csh, .cshrc will be read.

I hope this helps
Old 05-30-2008, 04:00 PM   #4
LQ Newbie
Registered: May 2008
Posts: 1

Rep: Reputation: 0
I ran across this today, and will leave this for anyone else who has problems. the file is hidden, so to see it do a ls -a.

Did not know that!!
Old 05-30-2008, 07:59 PM   #5
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,626
Blog Entries: 4

Rep: Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999
Yes, indeed: that leading "." in the name causes it to be a hidden file.


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
Suse 10.0 .cshrc setup munichtexan SUSE / openSUSE 1 01-19-2006 01:11 PM
Where is the.cshrc file in mandrake10.0? lbabey Linux - Newbie 1 11-08-2004 04:55 PM
global cshrc missing skrivnut Linux - Newbie 0 09-16-2004 02:27 AM
new account, .cshrc not working klundquist Linux - Newbie 1 06-01-2004 05:56 PM
cannot find .cshrc , please help slice4e Linux - General 4 05-12-2003 02:38 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration