Unix Shells

A Unix Shell, in the sense I will use here, is a command line interpreter that gives the user an interface for operating Unix or Unix-like systems. Over the years, several shells have been developed with different characteristics. Here I will briefly comment on the best known shells and share tips for configuring the shell I use.
In the following diagram are the six most popular shells, arranged so that a shell on a lower level extends the functions of the shell above it. Shells on different branches are incompatible.
csh (C shell) sh (Bourne shell)
| / \
| | ksh (Korn shell)
| | |
tcsh (TC shell) bash zsh (Z shell)
Created by Bill Joy while a student at UC Berkeley, it was released in 1978 as part of BSD. It was popular for writing scripts, since its syntax resembles the C language, but it is criticized for flaws in its implementation.
Tcsh is essentially the C Shell with a few extra features, such as tab completion, a command editor and better history handling.
This is the traditional shell developed by Stephen Bourne at Bell Labs and released in 1977. It was the default shell of Unix7 and more recent versions are still widely used today.
Written by Brian Fox for the GNU project, it was released in 1989 to replace the Bourne Shell and add a number of features. It is very widely used because it is the default shell of several Linux distributions and of Mac OS X.
It was developed by David Korn at AT&T Bell Labs and released in 1983. It is very popular because it is fully compatible with the Bourne Shell and has a number of other features, some copied from the C Shell.
It was written in 1990 by Paul Falstad, then a student at Princeton University, and it is the most complete shell on this list. It can be seen as an extension of the Bourne Shell with several improvements based on
bash,kshandtcsh, and it also has features of its own, including a spell checker.
Since Zsh is my favorite shell, I will write more about installing and configuring it (on Arch Linux).
In
/etc/shells, check the list of installed shells. If zsh does not show up in that list, install it.$ sudo pacman -S zshTest the installation and set the basic options
$ zshMake Zsh your default shell (applied after logging in again).
$ chsh -s $(which zsh)Edit the main configuration file,
~/.zshrc.An easy way to edit the file is through Oh My ZShell:
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc chsh -s /bin/zshI keep a copy of my own configuration at https://github.com/jbsilva/dotfiles.
Links
- Comments: http://linuxfinances.info/info/unixshells.html
- Comparison table: http://www.faqs.org/faqs/unix-faq/shell/shell-differences/
- Arch Wiki - Zsh: https://wiki.archlinux.org/index.php/Zsh
- Customizing various Shells: http://www.understudy.net/custom.html
- Differences: http://www.softlab.ntua.gr/facilities/documentation/unix/shelldiff.html
- Comments on Shell and scripts: http://faculty.plattsburgh.edu/jan.plaza/computing/help/shells.html
- Zsh - official FAQ: http://zsh.sourceforge.net/FAQ/zshfaq01.html
- Zsh Lovers - http://grml.org/zsh/zsh-lovers.html
- Oh My Zshell (framework) - https://github.com/robbyrussell/oh-my-zsh
- ZSH Wiki: http://zshwiki.org

I’m a Brazilian-German computer engineer based in Germany, passionate about tech, science, photography, and languages.
I’ve been programming for about two decades already, exploring everything from mobile apps and web development to machine learning. These days I focus on cloud SRE and data engineering.
I volunteer in the open source and Python communities, helping organize PyCon DE and PyData Berlin, serving on the PSF D&I Work Group, mentoring, and contributing code and translations.
On my blog, I share Linux tips, setup guides, and personal notes I’ve written for future reference. I hope others find them helpful as well. The content is available in multiple languages.
Browse my gallery for some of my photography.
Away from the keyboard, you’ll find me at concerts, playing clarinet, cycling, scuba diving, or exploring new places, cultures, and cuisines.
Always happy to connect! 🙂