LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


View Poll Results: What is your preferred Linux login shell?
ash 0 0%
bash 287 81.77%
csh 4 1.14%
dash 3 0.85%
es 0 0%
fish 2 0.57%
ksh 18 5.13%
pdksh 2 0.57%
rc 1 0.28%
scsh 0 0%
sh 3 0.85%
tcsh 10 2.85%
wish 0 0%
zsh 16 4.56%
Other 5 1.42%
Voters: 351. You may not vote on this poll

Reply
  Search this Thread
Old 06-17-2014, 04:43 PM   #1
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600

Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
What is your preferred Linux login shell?


Based on feedback in this thread, the official LQ polls continue. What is your preferred Linux login shell?

--jeremy
 
Old 06-17-2014, 04:57 PM   #2
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 398

Rep: Reputation: 87
eshell (emacs shell)
 
Old 06-17-2014, 05:20 PM   #3
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 398

Rep: Reputation: 87
So I have been forced by the need to work with Yocto / OpenEmbedded to learn enough bash to really grok what it is.....

a) It is actually a very small language.
b) As a Programming Language, it is truly awful. Please folks, just stop writing *sh scripts. Now.
c) There is a bunch of command line typing convenience stuff layered and interwingled on top of it. I suspect that stuff could be made more orthogonal and layered properly on top of a decent language.
 
Old 06-17-2014, 06:39 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

thanks for specifying "login shell" instead of just "shell", which is way too vague.

Evo2.
 
Old 06-17-2014, 07:11 PM   #5
jemartins
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
====
bash
====
 
Old 06-17-2014, 07:25 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

maybe a follow up question would be interesting - what login shells have you used? Presumably bash is the preferred login shell of the majority of LQ members because it is the default on the majority of distros of LQ members.

Evo2.
 
Old 06-17-2014, 07:36 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
evo2 nailed me.

I use bash because it is the standard. I've never been moved to try anything else.
 
Old 06-17-2014, 07:40 PM   #8
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Yea, bash, because its there...

**UPDATED**

That seemed a little dismissive. In fairness:
* Originally because it was there
* Now because it is familiar
* It has become familiar because it really is an excellent login shell!

Last edited by astrogeek; 06-17-2014 at 08:10 PM.
 
Old 06-17-2014, 10:01 PM   #9
ron7000
Member
 
Registered: Nov 2007
Location: CT
Posts: 248

Rep: Reputation: 26
tcsh FTW !
 
1 members found this post helpful.
Old 06-17-2014, 10:19 PM   #10
Toadbrooks
Member
 
Registered: Jul 2008
Distribution: Linux Mint 16
Posts: 83

Rep: Reputation: 11
Quote:
Originally Posted by evo2 View Post
maybe a follow up question would be interesting - what login shells have you used? Presumably bash is the preferred login shell of the majority of LQ members because it is the default on the majority of distros of LQ members.
Valid point. I've been doing Unix since 1984. I've used sh, ksh, zsh, csh, tcsh, and bash. Prior to bash, my favorite was ksh. I suppose I like bash because it's pretty much like ksh with a few extra features.
 
Old 06-17-2014, 11:35 PM   #11
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 757

Rep: Reputation: 145Reputation: 145
Quote:
Originally Posted by cyent View Post
a) It is actually a very small language.
b) As a Programming Language, it is truly awful. Please folks, just stop writing *sh scripts. Now.
Yes, it is a language! Being thoroughly fluent in Bash script, I find it extremely convenient in spite of its idiosyncrasies. It's convenient because it's always right there at my fingertips.

In fact, I'm frequently frustrated that this reply box doesn't understand CTRL-A, CTRL-E, CTRL-D and ALT-D like Bash.
 
Old 06-17-2014, 11:49 PM   #12
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by Toadbrooks View Post
Valid point. I've been doing Unix since 1984. I've used sh, ksh, zsh, csh, tcsh, and bash. Prior to bash, my favorite was ksh. I suppose I like bash because it's pretty much like ksh with a few extra features.
I was dumped in tsch on DEC and Solaris machines in the mid to late 90s. When I started using Linux in the early 00s I persisted with tcsh since that's what I was used to. I was however told from the beginning that I should not use csh/tsch for scripts, so I was used to looping and branching in sh but not in csh. I'd find myself sometimes typing "bash" at my tcsh prompt to do some things, which after a while lead me to actually trying bash as my login shell. It took me a while to get it set up how I liked it, but once there I was very happy. Around this time I noticed that some of the wizards were using zsh, a few years later I gave it a try and again, after getting it set up to my liking I've been very happy with - the transition from bash to zsh is trivial compared to tcsh to bash.

Evo2.
 
Old 06-17-2014, 11:53 PM   #13
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by cyent View Post
Please folks, just stop writing *sh scripts. Now.
I guess you don't spend much time on the command line. What scripts in particular do you want people not to write?

Evo2
 
1 members found this post helpful.
Old 06-18-2014, 12:14 AM   #14
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by cyent View Post
So I have been forced by the need to work with Yocto / OpenEmbedded to learn enough bash to really grok what it is.....

a) It is actually a very small language.
b) As a Programming Language, it is truly awful. Please folks, just stop writing *sh scripts. Now.
c) There is a bunch of command line typing convenience stuff layered and interwingled on top of it. I suspect that stuff could be made more orthogonal and layered properly on top of a decent language.
Not wanting to engage in another pointless discussion, I ignored this when I first saw it... but since others have also taken note, my own two cents...

Quote:
a) It is actually a very small language.
No, it is actually a "shell", a command line interpreter which reads user input and executes commands. It also supports a variant of a powerful scripting language useful within that context.

Quote:
b) As a Programming Language, it is truly awful. Please folks, just stop writing *sh scripts. Now.
It is not a general purpose programming language, it is a special purpose language which supports direct user interaction with the kernel as well as deferred (scripted) execution, all with the same syntax. As such it is very specialized, but very useful for its intended purpose.

Quote:
c) There is a bunch of command line typing convenience stuff layered and interwingled on top of it. I suspect that stuff could be made more orthogonal and layered properly on top of a decent language.
Your understanding of what it is, what it does and why it is as it is, are exactly backward! It is an interactive command interpreter first, with an extended scripting syntax as one component.

As you indicate that you have been forced to work with it, and are obviously not knowledgable within the *nix paradigm, you view it negatively. It would be more useful to try to understand the how and why of it rather than criticize that which you do not understand.
 
6 members found this post helpful.
Old 06-18-2014, 01:01 AM   #15
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Hmm. Hmhm. I usually do a graphical login with kdm. What do I vote then? Jeremy?

When I go to a console I use bash since it is the default. When I have time (during retirement perhaps ) I should like to learn scripting and also try zsh.

Last edited by JZL240I-U; 06-18-2014 at 08:34 AM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Preferred central login server? szboardstretcher Linux - Server 0 03-20-2014 07:45 PM
Which Is Your Preferred Linux Shell? jeremy Linux - General 47 01-10-2014 07:55 PM
Login Shell / Non-Login shell Clarification needed (RHEL 6.3) kingston Linux - Newbie 1 12-07-2012 12:51 AM
Preferred distribution for c and shell programming? Its All in your Head Linux - Distributions 3 07-07-2007 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01: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
Open Source Consulting | Domain Registration