Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What Linux shell should I use? [closed]

Tags:

linux

shell

I've used bash, csh, and tcsh. But I asked this question, and Jonathan informed me that csh isn't to be trusted. So what Linux shell is good for development. and why?

like image 861
Scottie T Avatar asked Oct 14 '08 01:10

Scottie T


People also ask

What shell should I use Linux?

Bash, or the Bourne-Again Shell, is by far the most widely used choice and it comes installed as the default shell in the most popular Linux distributions.

Is zsh better than bash?

Zsh is more interactive and customizable than Bash. Zsh has floating-point support that Bash does not possess. Hash data structures are supported in Zsh that are not present in Bash. The invocation features in Bash is better when comparing with Zsh.

How do I know if Im using bash or zsh?

Now, coming to the article's main subject, how will you know that you have bash or zsh? The answer is quite simple. Use the “–version” command to confirm the existence of both shells on your Linux system.


2 Answers

The most common shell, by far, on Linux is bash. Unless you have a good reason to use an alternative, I'd suggest that sticking with bash, or the most commonly used shell by your project team (or that the bulk of the shell scripts you have to work with) uses.

The only other very common contender is dash, which is becoming more widely used by the Ubuntu project.

This really is personal preference, well, except for csh.

Wikipedia link for csh

like image 147
Kyle Burton Avatar answered Oct 12 '22 23:10

Kyle Burton


I prefer zsh.

The tab-completion alone is worth it:

  • It expands wildcards if you want(handy when you want to delete all but one file in a directory)
  • Will give you a list of switches after specifying a program
  • Gives tab completion options below the line you're working on, which is pretty handy.

http://zsh.sourceforge.net/

like image 26
SomeDork Avatar answered Oct 12 '22 23:10

SomeDork