Download your favorite Linux distribution at LQ ISO.
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 03-18-2008, 04:48 PM   #1
LQ Newbie
Registered: Mar 2008
Posts: 12

Rep: Reputation: 0
.cshrc and .login files

Hi guys,

I'm running OpenSUSE10.3 and can't find a .cshrc or .login file in my home directory. Are they created automatically, and if so, where, or do you generate them manually? Probly stupid question. Sorry!


Old 03-19-2008, 04:52 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
I think you need to create them yourself. I ran tcsh in a CLI session on openSUSE 10.3 and those files weren't automatically setup.
Old 03-19-2008, 05:05 AM   #3
LQ Newbie
Registered: Mar 2008
Posts: 4

Rep: Reputation: 0
Yep, make 'em yourself

you make them yourself, but it's no big deal because there's no fancy syntax for them. you just write one command per line, and each of them will be executed when you log in. example:

setenv DISPLAY localhost:0.0
echo "You've logged on successfully!"
cd /usr/bin

if this is the contents of your .cshrc file then everytime you open a c-shell, it will set the DISPLAY variable, print the message, start a firefox window in the background, and change the working directory. As you can see, the syntax is just the same as in the terminal.

enjoy customizing your computer!



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
Where is .cshrc? johnpaulodonnell Linux - Newbie 4 05-30-2008 06:59 PM
have my .cshrc or .login invoke bash mattie_linux Linux - Newbie 1 06-06-2007 03:16 PM
.login, .bashrc or .cshrc ??? tuananhbirm Linux - General 1 01-20-2005 09:44 AM
global cshrc missing skrivnut Linux - Newbie 0 09-16-2004 01:27 AM
cannot find .cshrc , please help slice4e Linux - General 4 05-12-2003 01:38 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:20 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