LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-31-2011, 10:16 PM   #1
Asmaa.Elshal
LQ Newbie
 
Registered: Dec 2011
Posts: 1

Rep: Reputation: Disabled
what diff between shell in linux sh ,csh ,ksh,bash ???


Diff s betwn shell ?
 
Old 12-31-2011, 10:20 PM   #2
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Ubuntu
Posts: 794

Rep: Reputation: 56
Different features. They all run the same commands but behave a little differently.

Wikipedia Article: https://en.wikipedia.org/wiki/Unix_shell
 
Old 12-31-2011, 11:20 PM   #3
gary185
Member
 
Registered: Jul 2011
Posts: 113

Rep: Reputation: Disabled
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.
 
Old 01-01-2012, 05:00 PM   #4
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,389

Rep: Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961
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?"!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
converting bash script to csh shell asinghpu Programming 2 12-21-2011 08:24 AM
Shell Programming - BASH, KSH, ZSH vikas027 Programming 1 06-15-2010 08:29 AM
[SOLVED] bash/csh shell in gvim vijay_babu1981 Linux - Software 1 04-08-2010 08:06 AM
processing a ksh shell in bash environment ntoughe Programming 9 09-12-2005 06:09 AM
shell confusion..what is diff between bash, ksh, csh, tcsh..?? servnov Linux - Newbie 7 11-18-2004 09:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration