Unix shell
desktop A Unix shell is a shell that provides a command-line user interface for a Unix-like operating system.[src] A Unix shell provides a command language that can be used either interactively or for writing a shell script.[src] A user typically works within a Unix shell via a terminal emulator; however, direct access via serial hardware connections or a Secure Shell are common for server systems.[src] Although use of a Unix shell is popular with some users, others prefer to use a graphical shell in a windowing system, such as those provided in desktop Linux distributions or macOS, instead of a command-line interface (CLI).[src] A user may have access to multiple Unix shells with one configured to run by default when the user logs in interactively.[src] The default selection is typically stored in a user's profile (for example, in the local file or in a distributed configuration system such as NIS or LDAP).[src] A user may use other shells nested inside the default shell.[src] A Unix shell may provide many features including: variable definition and substitution, command substitution, filename wildcarding, stream piping, control flow structures (condition-testing and iteration), working directory context, and here document.[src]
desktop A Unix shell is a shell that provides a command-line user interface for a Unix-like operating system.[src] A Unix shell provides a command language that can be used either interactively or for writing a shell script.[src] A user typically works within a Unix shell via a terminal emulator; however, direct access via serial hardware connections or a Secure Shell are common for server systems.[src] Although use of a Unix shell is popular with some users, others prefer to use a graphical shell in a windowing system, such as those provided in desktop Linux distributions or macOS, instead of a command-line interface (CLI).[src] A user may have access to multiple Unix shells with one configured to run by default when the user logs in interactively.[src] The default selection is typically stored in a user's profile (for example, in the local file or in a distributed configuration system such as NIS or LDAP).[src] A user may use other shells nested inside the default shell.[src] A Unix shell may provide many features including: variable definition and substitution, command substitution, filename wildcarding, stream piping, control flow structures (condition-testing and iteration), working directory context, and here document.[src] ==History== ===Early shells=== The first Unix shell was the Thompson shell, sh, written by Ken Thompson at Bell Labs and distributed with Versions 1 through 6 of Unix, from 1971 to 1975.[src] Though rudimentary by modern standards, it introduced many of the basic features common to all later Unix shells, including piping, simple control structures using if and goto , and filename GLOB bing.[src] Though not in current use, it is still available as part of some Ancient UNIX systems, such as Version 6 Unix.[src] It was modeled after the Multics shell, developed in 1965 by American software engineer Glenda Schroeder.[src] Schroeder's Multics shell was itself modeled after the RUNCOM program Louis Pouzin showed to the Multics Team.[src] The "rc" suffix on some Unix configuration files (e.g.[src] ".bashrc" or ".vimrc"), is a remnant of the RUNCOM ancestry of Unix shells.[src] The PWB shell or Mashey shell, sh, was an upward-compatible version of the Thompson shell, augmented by John Mashey and others and distributed with the Programmer's Workbench UNIX, circa 1975–1977.[src] It focused on making shell programming practical, especially in large shared computing centers.[src] It added shell variables (precursors of environment variables, including the search path mechanism that evolved into $PATH), user-executable shell scripts, and interrupt-handling.[src] Control structures were extended from if/goto to if/then/else/endif, switch/breaksw/endsw, and while/end/break/continue.[src] As shell programming became widespread, these external commands were incorporated into the shell itself for performance.[src] But the most widely distributed and influential of the early Unix shells were the Bourne shell and the C shell.[src] Both shells have been used as the coding base and model for many derivative and work-alike shells with extended feature sets.[src] ===Bourne shell=== The Bourne shell, sh, was a new Unix shell by Stephen Bourne at Bell Labs.[src] Distributed as the shell for UNIX Version 7 in 1979, it introduced the rest of the basic features considered common to all the later Unix shells, including here documents, command substitution, more generic variables and more extensive builtin control structures.[src] The language, including the use of a reversed keyword to mark the end of a block, was influenced by ALGOL 68.[src] Traditionally, the Bourne shell program name is and its path in the Unix file system hierarchy is .[src] But a number of compatible work-alikes are also available with various improvements and additional features.[src] On many systems, sh may be a symbolic link or hard link to one of these alternatives: Almquist shell (ash): written as a BSD-licensed replacement for the Bourne Shell; often used in resource-constrained environments.[src] The sh of FreeBSD, NetBSD (and their derivatives) are based on ash that has been enhanced to be POSIX conformant.[src] Busybox: a set of Unix utilities for small and embedded systems, which includes 2 shells: ash, a derivative of the Almquist shell; and hush, an independent implementation of a Bourne shell.[src] Debian Almquist shell (dash): a modern replacement for ash in Debian and Ubuntu Bourne-Again shell (bash): written as part of the GNU Project to provide a superset of Bourne Shell functionality.[src] This shell can be found installed and is the default interactive shell for users on most Linux systems; it provides both interactive mode (implemented by GNU Readline) or script-mode.[src] Korn shell (ksh): an enhanced version of the Bourne shell, written by David Korn based on the Bourne shell sources while working at Bell Labs Public domain Korn shell (pdksh) MirBSD Korn shell (mksh): a descendant of the OpenBSD /bin/ksh and pdksh, developed as part of MirOS BSD Z shell (zsh): a relatively modern shell that is partially backward compatible with bash.[src] It's the default shell in Kali Linux since 2020.4 and macOS since 10.15 Catalina.[src] The POSIX standard specifies its standard shell as a strict subset of the Korn shell.[src] From a user's perspective the Bourne shell was immediately recognized when active by its characteristic default command line prompt character, the dollar sign ( ).[src] ===C shell=== The C shell, csh, was modeled on the C programming language, including the control structures and the expression grammar.[src] It was written by Bill Joy as a graduate student at University of California, Berkeley, and was widely distributed with BSD Unix.[src] The C shell also introduced many features for interactive work, including the history and editing mechanisms, aliases, directory stacks, tilde notation, cdpath, job control and path hashing.[src] On many systems, csh may be a symbolic link or hard link to TENEX C shell (tcsh), an improved version of Joy's original version.[src] Although the interactive features of csh have been copied to most other shells, the language structure has not been widely copied.[src] The only work-alike is Hamilton C shell, written by Nicole Hamilton, first distributed on OS/2 in 1988 and on Windows since 1992.[src] ==Configuration files== Shells read configuration files in various circumstances.[src] These files usually contain commands for the shell and are executed when loaded; they are usually used to set important variables used to find executables, like $PATH, and others that control the behavior and appearance of the shell.[src] The table in this section shows the configuration files for popular shells.[src] Explanation: blank means a file is not read by a shell at all.[src] "yes" means a file is always read by a shell upon startup.[src] "login" means a file is read if the shell is a login shell.[src] "n/login" means a file is read if the shell is not a login shell.[src] "int." means a file is read if the shell is interactive.[src] ==Other shells== Variations on the Unix shell concept that don't derive from Bourne shell or C shell include the following: es – A functional programming rc-compatible shell written in the mid-1990s.[src] Friendly interactive shell (fish) – First released in 2005.[src] PowerShell – An object-oriented shell developed originally for Windows OS and now available to macOS and Linux.[src] Qshell – A shell on the IBM i operating system based on POSIX and X/Open standards.[src] rc – The default shell on Plan 9 from Bell Labs and Version 10 Unix written by Tom Duff.[src] Ports have been made to various Unix-like operating systems.[src] scsh – A Scheme Shell.[src] wish – A windowing shell for Tcl/Tk.[src] ==See also==[src]
67 sentences · 67 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Unix shell." encyclopegia.org, 2026, https://encyclopegia.org/wiki/unix-shell. Accessed 27 November 2026.
Chicago
"Unix shell." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/unix-shell.
APA
encyclopegia.org. (2026). Unix shell. Retrieved November 27, 2026, from https://encyclopegia.org/wiki/unix-shell
Accessed November 27, 2026 · CC BY-SA 4.0 · citation page · JSON
Claims
| Predicate | Value | Source |
|---|---|---|
| release date | 2005 | Wikipedia |