LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

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

Rep: Reputation: 15
Where is .cshrc?


Hi.

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...

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

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
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
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
.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
--Ian
 
Old 05-30-2008, 04:00 PM   #4
danno74
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
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,423

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


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
Suse 10.0 .cshrc setup munichtexan Suse/Novell 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


All times are GMT -5. The time now is 09:58 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration