LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 08: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 04:01 PM.
 
Old 03-20-2011, 08:23 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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, 08: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, 08: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, 08: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, 02: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, 11:13 AM   #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, 07:19 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

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


Reply



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 05:31 PM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08: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 10:30 AM
/bin/csh: bad interpreter KDel Linux - Newbie 5 04-28-2004 04:34 AM
Newbie needs help Installing j2sdk-1_4_2-nb_3_5_1-bin-linux.bin bendoku Linux - Newbie 5 10-11-2003 09:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:46 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
Open Source Consulting | Domain Registration