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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-19-2006, 03:54 AM
|
#1
|
|
Member
Registered: Jun 2006
Location: Galway
Distribution: Suse 10.1
Posts: 114
Rep:
|
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
|
|
|
|
09-19-2006, 07:10 AM
|
#2
|
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,574
|
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
|
|
|
|
09-19-2006, 08:58 PM
|
#3
|
|
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
|
.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
|
|
|
|
05-30-2008, 03:00 PM
|
#4
|
|
LQ Newbie
Registered: May 2008
Posts: 1
Rep:
|
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!! 
|
|
|
|
05-30-2008, 06:59 PM
|
#5
|
|
Senior Member
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 4,554
|
Yes, indeed: that leading "." in the name causes it to be a hidden file.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:58 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|