LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-20-2011, 09:20 AM   #1
Ribo01
Member
 
Registered: Aug 2010
Posts: 103

Rep: Reputation: 5
how to configure /bin/csh, /bin/sh


Hello y'all. Am kinda of having problems understanding usage of this shells
  1. /bin/sh
  2. /bin/csh
. Like you all know, let's assume your shell is /bin/bash, all your configuration goes into .bashrc file in ~/users home directory . So I will like to know the config file for the listed shells, and if I have to create one? thanks in anticipation

Last edited by Ribo01; 03-20-2011 at 05:01 PM.
 
Old 03-20-2011, 09:23 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Well, in the case of /bin/sh, that is probably just a link to /bin/bash anyway. But csh can be configured in the same way as Bash, through use of a .cshrc file.
 
Old 03-20-2011, 09:26 AM   #3
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Keep in mind that all login shells read the content of /etc/profile
 
Old 03-20-2011, 09:32 AM   #4
Ribo01
Member
 
Registered: Aug 2010
Posts: 103

Original Poster
Rep: Reputation: 5
Ok, let's assume I want to change my present prompt in the case of me using /bin/csh, what do I do. You know in the case of /bin/bash, all you just have to do ios to write your new prompt and save in .bashrc in youir home directory. Is it the same for /bin/csh, and what file do I need to save my prompt ?
 
Old 03-20-2011, 09:49 AM   #5
Ribo01
Member
 
Registered: Aug 2010
Posts: 103

Original Poster
Rep: Reputation: 5
Ok, let's assume I want to change my present prompt in the case of me using /bin/csh, what do I do. You know in the case of /bin/bash, all you just have to do ios to write your new prompt and save in .bashrc in youir home directory. Is it the same for /bin/csh, and what file do I need to save my prompt ?
 
Old 03-21-2011, 03:12 AM   #6
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Quote:
Originally Posted by Ribo01 View Post
Ok, let's assume I want to change my present prompt in the case of me using /bin/csh, what do I do. You know in the case of /bin/bash, all you just have to do ios to write your new prompt and save in .bashrc in youir home directory. Is it the same for /bin/csh, and what file do I need to save my prompt ?
You have to do the same, but call the file .cshrc and put it in your home directory.
 
Old 03-21-2011, 12:13 PM   #7
Ribo01
Member
 
Registered: Aug 2010
Posts: 103

Original Poster
Rep: Reputation: 5
Thanks to slackyman. I think I got it now. So basically, in-respective of the shell you are using, all you just have to do is create an rc file with the shell name and save in your ~/user home directory right ?
 
Old 03-21-2011, 08:19 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
You may want to read this http://www.grymoire.com/Unix/CshTop10.txt
 
  


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
[SOLVED] /usr/bin/xterm: Could not exec /bin/bash: Permission Denied suheng Linux - Newbie 2 09-24-2010 06:31 PM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 09:33 AM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 11:30 AM
/bin/csh: bad interpreter KDel Linux - Newbie 5 04-28-2004 05:34 AM
Newbie needs help Installing j2sdk-1_4_2-nb_3_5_1-bin-linux.bin bendoku Linux - Newbie 5 10-11-2003 10:27 AM


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

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