[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]


    Search the Q&A Archives


...know which is my shell ? set a default...

<< Back to: Unix - Frequently Asked Questions (Contents) [Frequent posting]

Question by Sunny
Submitted on 7/22/2003
Related FAQ: Unix - Frequently Asked Questions (Contents) [Frequent posting]
Rating: Rate this question: Vote
How do I know which is my shell ? How do I set a default shell ?



Answer by janrao
Submitted on 10/14/2003
Rating:  Rate this answer: Vote
using environment variable, user can know in which shell user logged in.  

 

Answer by VASU TELLUPADI
Submitted on 11/24/2003
Rating:  Rate this answer: Vote
For knowing shell type echo$SHELL
IN .profile you can set your shell

 

Answer by llagos@amr.cl
Submitted on 3/17/2004
Rating:  Rate this answer: Vote
to change:
$ chsh (as any root)

second option, if You are root, or as root, want to change someone else's shell
# vi /etc/passwd

to know current shell
$ echo $SHELL

 

Answer by Surojit Mukerji
Submitted on 11/29/2004
Rating: Not yet rated Rate this answer: Vote
some systems have a SHELL environment variable. On the command line , doing a echo $SHELL would provide the name of the shell installed.


 

Answer by dipu
Submitted on 8/26/2005
Rating: Not yet rated Rate this answer: Vote
echo $0 will give the current shell

 

Answer by Mani Siva
Submitted on 4/18/2006
Rating: Not yet rated Rate this answer: Vote
Export SHELL=/bin/ksh
is set the current shell and you can proceed

 

Answer by manips15@gmail.com
Submitted on 4/18/2006
Rating: Not yet rated Rate this answer: Vote
$ bash -vi /bin/ksh is applicable for Linux to change the shell to "kron Shell " . This has to be applied in rpm format for certain Discoverer application to run .

 

Answer by Mohanarangam Panneerselvam
Submitted on 5/4/2006
Rating: Not yet rated Rate this answer: Vote
Just type the following command which gives information about all the user_names and their corresponding default login shells set by the administrator.

cat /etc/passwd | cut -d":" -f1,7


Here the delimiter is ":" in that file

field1 -> The first field(f1) is user_name
field7 -> The seventh field(f7) is the default login shell for each user.


 

Answer by prashant baviskar
Submitted on 7/24/2006
Rating: Not yet rated Rate this answer: Vote
To know current shell >>

$ echo $SHELL

To change current shell >>

$ chsh

 

Your answer will be published for anyone to see and rate.  Your answer will not be displayed immediately.  If you'd like to get expert points and benefit from positive ratings, please create a new account or login into an existing account below.


Your name or nickname:
If you'd like to create a new account or access your existing account, put in your password here:
Your answer:

FAQS.ORG reserves the right to edit your answer as to improve its clarity.  By submitting your answer you authorize FAQS.ORG to publish your answer on the WWW without any restrictions. You agree to hold harmless and indemnify FAQS.ORG against any claims, costs, or damages resulting from publishing your answer.

 

FAQS.ORG makes no guarantees as to the accuracy of the posts. Each post is the personal opinion of the poster. These posts are not intended to substitute for medical, tax, legal, investment, accounting, or other professional advice. FAQS.ORG does not endorse any opinion or any product or service mentioned mentioned in these posts.

 

<< Back to: Unix - Frequently Asked Questions (Contents) [Frequent posting]


[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]

© 2008 FAQS.ORG. All rights reserved.