find all of the available shells

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

cat /etc/shells

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

Try the which command to locate:

$> 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.

What O/S are you running ? Some dont actively use /etc/shells

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

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.