LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   what diff between shell in linux sh ,csh ,ksh,bash ??? (https://www.linuxquestions.org/questions/linux-newbie-8/what-diff-between-shell-in-linux-sh-csh-ksh-bash-921441/)

Asmaa.Elshal 12-31-2011 09:16 PM

what diff between shell in linux sh ,csh ,ksh,bash ???
 
Diff s betwn shell ?

dudeman41465 12-31-2011 09:20 PM

Different features. They all run the same commands but behave a little differently.

Wikipedia Article: https://en.wikipedia.org/wiki/Unix_shell

gary185 12-31-2011 10:20 PM

oh man there are allot of differences.
so much so that changing your login shell can make your system unusable unless you test it allot

basically they evolved toward the bash as a modern shell

some of the shells have basically similar syntax sh ksh bash and zsh are all based on sh syntax.

sh can do almost nothing -- not even user name lookup or job control
-- the others work towards bash which is the most fully functional of the bunch
there is no real reason to switch away from bash to any of the earlier less useful sh type shells



i would say that ksh would have become the linux shell accept it wasn't free.
so bourne shell (sh) which became the posix sys v shell looks almost exactly like ksh.
bash is almost the same based on the Bourne shells language with other c shell bits.

again even these aren't 1 to 1 the same and switching requires lots of testing.

csh and tcsh are based on a different input language

more modern you have zsh which is like bash
rc and es are based on yet another input language
they are larger and more complex
perhaps can do usefull things who knows.
they look overly complex to me.

wpeckham 01-01-2012 04:00 PM

Shells
 
1. Actually while the original KORN (ksh) shell was not free, the pd-ksh shell was and is.
2. ksh is the default shell on aix system, some solaris systems, and most HP-UX systems. It is used in Linux in open-soource form and version.
3. more shells have been ported, developed, invented, or customized for Linux and FreeBSD than any other OS family I know.

Every shell has unique features or implementation of features. Most have features specific to interactive mode operation, but some are specificaly designed for non-interactive mode operation. There are even shells such as IBSH (Iron Bound SHell) that are security utilities designed to PREVENT the use if features or commands.

Trying to list all of the differences in a forum would be like trying to answer the question" what is the difference between a duck?"!


All times are GMT -5. The time now is 02:07 AM.