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 08-04-2014, 05:18 PM   #1
GunaVishwa
LQ Newbie
 
Registered: Aug 2014
Posts: 1

Rep: Reputation: Disabled
Multiple Shells


Hi,

Why do we have multiple shells like Bsh, Ksh and others.

Kernel is the one doing all the processing. Shell is supposed to be only a interface between Kernel and user. So, if we have to create a new shell to do new processing, then isnt it the kernel which should be changed and not the shell.
 
Old 08-04-2014, 05:32 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,211

Rep: Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612
Quote:
Originally Posted by GunaVishwa View Post
Why do we have multiple shells like Bsh, Ksh and others.
Different shells fit different people better. The C shell for example is wonderful for C programmers and developers. Bash is a great all-purpose interpreter. And ZSH is a nice replacement for bash.

It just depends on what you learned on, and what you need.
 
Old 08-05-2014, 06:01 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,713

Rep: Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279
Any application can be a shell. At one time, I set the old adventure game to be a users shell. Play until finished or quit - and it logs out. This was very common - the technique is known as a "captive shell" or "captive login". At one time, this used to be one way to allow a system to be shutdown, without having to know how to shutdown the system - the login name was "shutdown", and the shell was the shutdown utility. Thus it was simple to allow untrained people that knew the password to be able to shutdown the system.

There is nothing special about a shell.
 
Old 08-05-2014, 06:35 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,793

Rep: Reputation: 2888Reputation: 2888Reputation: 2888Reputation: 2888Reputation: 2888Reputation: 2888Reputation: 2888Reputation: 2888Reputation: 2888Reputation: 2888Reputation: 2888
Quote:
Originally Posted by GunaVishwa View Post

Kernel is the one doing all the processing. Shell is supposed to be only a interface between Kernel and user.
No. Kernel will give you low level access to all the devices you have, shell will interpret the script you wrote and the script will tell the system what to do at all.
(kernel itself does not do the processing but instruct the devices to act ...)
 
Old 08-05-2014, 10:40 AM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 5,844
Blog Entries: 12

Rep: Reputation: 2010Reputation: 2010Reputation: 2010Reputation: 2010Reputation: 2010Reputation: 2010Reputation: 2010Reputation: 2010Reputation: 2010Reputation: 2010Reputation: 2010
I look at the shell as the way you can run navigate your machine, control files, and run programs.

There simply are different shells available. I've commented before that many of them support legacy forms of commands as well as similar conventions as the other shells. Therefore my opinion is that it is really programmer's favoritism versus true technical reasons; because while each shell is different in how they allow you to accomplish things they all mostly allow you to accomplish the same things just using different syntax or styles.

There's a poll question on what shell people use and there's pages of comments accompanying the poll, here.

I found my comments in that thread and "surprisingly" agree with them!

http://www.linuxquestions.org/questi...ml#post5126642

The last point was that I'd hate to spend a lot of time learning some new shell, say it was unique; buy into it and all, only to find that some time later it became unsupported; sort of like a favorite TV series which ran for one year. But also that the existing shells have changed over the years too.

Last edited by rtmistler; 08-05-2014 at 10:44 AM.
 
1 members found this post helpful.
  


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
How can using multiple shells benefit in the integration of OS w/in an organization? TiaV0423 Linux - Newbie 2 03-04-2014 05:22 AM
[SOLVED] is there any way to have multiple x severs running in different shells? elerek Linux - Newbie 2 05-24-2010 10:29 PM
emacs: running multiple M-x shells? genmaicha Linux - Software 2 04-17-2009 01:41 PM
Accessing multiple video card devices from seperate shells in parallel rosenbsn Linux - Newbie 4 01-29-2009 10:12 AM
Using C++ to place information on multiple shells mattmole Programming 1 05-16-2004 08:58 AM

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

All times are GMT -5. The time now is 02:59 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