find all of the available shells


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting find all of the available shells
# 1  
Old 12-17-2010
find all of the available shells

To find all of the available shells in your system we can use

Code:
cat /etc/shells

but i dont find shells in my system where else i can look for same info??

Last edited by zaxxon; 12-17-2010 at 04:57 AM.. Reason: removing useless font and adding code tags
# 2  
Old 12-17-2010
Try the which command to locate:
Code:
$> which sh
/bin/sh
$> which bash
/bin/bash
$> which ksh
/usr/bin/ksh

So you might have a look into /bin and /usr/bin.

Also your package management can be searched, which shells are currently installed, whatever your Unix/Linux is.
# 3  
Old 12-17-2010
What O/S are you running ? Some dont actively use /etc/shells
# 4  
Old 12-17-2010
The OS

OSTYPE=solaris

---------- Post updated at 04:33 AM ---------- Previous update was at 04:28 AM ----------

yes .i checked in ubunto /etc/shells works there
# 5  
Old 12-17-2010
Solaris 10 includes the following shells out of the box - sh (bourne), sh (xpg4/posix), jsh, csh, tcsh, ksh (their own oddball version), bash, zsh, and dtksh (early ksh93) as well as the profiling shells - pfsh, pfksh, pfcsh.

There are probably more.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Please what are shells?

I mean like this: http://shells.red-pill.eu/ Can anyone explain how this works? I hope my post is not spam. I think its related to linux. Thank you (1 Reply)
Discussion started by: postcd
1 Replies

2. UNIX for Dummies Questions & Answers

Significance of different shells?

I'm taking a LINUX and UNIX class and we are using bash as the shell in terminal. On my mac-book I use zsh only because my professor had a pretty cool start-up file for it. It has benefited me in becoming familiar with different shells. However, I'm having a hard time understanding the purpose... (4 Replies)
Discussion started by: syregnar86
4 Replies

3. UNIX for Dummies Questions & Answers

Shells

Lets say my default shell is bash and then i load up csh and then ksh. How would i exit csh without exiting ksh? so basically i gone from bash > csh > ksh and i wish to close csh (2 Replies)
Discussion started by: Bill Thompson
2 Replies

4. UNIX for Advanced & Expert Users

why we have different shells?

Can you pls. tell me, why we have different shells in UNIX OS ( Eg. SunOs) and also I would like to know what is the specific difference b/w SVR and BSD ? Thanks. (2 Replies)
Discussion started by: shahnazurs
2 Replies

5. UNIX for Advanced & Expert Users

how to find out all shells on server ??

hi is there any way to find out all the shells on server i know bash / ksh are available on all servers but just for Curiosity i want to know .. is there any command for that ??? i can find it out by this $ /usr/bin >find . -name \*sh ./remsh ./csh ./ksh ./rsh ./chsh ./rksh ./sh... (3 Replies)
Discussion started by: zedex
3 Replies

6. Shell Programming and Scripting

control sub-shells

Hi all, New to shell scripting, I would like to know if it is possible to pass commands to a shell, which has been launched by a parent shell. Example: #!/bin/ksh # # Launch and command shells # . mySecondShell.ksh #this launches a sub-shell #now is something like this possible?... (7 Replies)
Discussion started by: MarkZWEERS
7 Replies

7. Shell Programming and Scripting

Different type of shells?

Hello there, i just want to know what are the different type of shells and the main difference betwee them. The problem is that if you try to search over the net you will find a lot of information and hence you will have no enough time to read all of them.....Anyone can help with this?? (1 Reply)
Discussion started by: charbel
1 Replies

8. Linux

Version of Shells?

Can anyone tell me the version of shells for bash mc pdksh tcsh zsh For Red Hat Enterprise 4? Thank you very much! (2 Replies)
Discussion started by: Xplore
2 Replies

9. UNIX for Advanced & Expert Users

Shells

I have came across the definitions of these shells korn bourne c etc .. but honestly till now i din't get the exact difference between these threes , the advantages ..... can anyone pinpoint me where it actually lies ..... don;t include me answers like aliasing in c is posible and not in bourne ..... (3 Replies)
Discussion started by: dino_leix
3 Replies

10. UNIX for Dummies Questions & Answers

Restricted Shells. . .

Hey, Could someone please help me distinguish between a captive account and a restricted shell? Many thanks, L. (0 Replies)
Discussion started by: crispy
0 Replies
Login or Register to Ask a Question

Featured Tech Videos