Can't seem to change to C-shell
Hi!
I know that if one uses the "/bin/csh" then you're supposed to go to the C-Shell. If I do that, and then say "echo $SHELL" I get "/bin/bash". Also, the default prompt for csh is "%" and "$" for bash, am I right? But I never see "%" when I use a normal user, and with root it always seems to be "#". With the normal user, it sometimes says, "permission denied" but I've put this in the code segment below. For the normal user: Code:
[compchem@gnlserv01 ~]$ /bin/csh Code:
[root@gnlserv01 ~]# /bin/csh How do I cure this? |
Can you try and change your default shell to c shell in /etc/passwd and see if it is available?
|
Hi Brother,
It is simple... change your default shell using the command "chsh", as shown below: $ chsh -s /bin/csh <it may ask user login password> $ echo $SHELL /bin/bash Here you will observe the "SHELL" variable to be still "/bin/bash". I think this "SHELL" env variable will be initialized at the time when user logs in. Please logout and login again. After re-login: $ echo $SHELL /bin/csh |
You can use the chsh command to change your login shell. Use
Code:
chsh -l Code:
chsh -s /bin/csh Code:
#!/bin/csh |
[Solved]
Thanks! Your advice worked!
|
All times are GMT -5. The time now is 04:44 PM. |