Sh

From LQWiki
Jump to: navigation, search

sh is a common UNIX shell or "Command Language Interpreter" (quoth "man shell")

Originally, this was the Bourne shell (named for its author Steve Bourne,) which was the default shell for Unix beginning with Version 7. It was proprietary to AT&T, which caused to to be cloned, extended and generalized in various ways. Nowadays, the /bin/sh entry is usually a link (hard or soft) to some other descendant shell which will respond by behaving as nearly like its illustrious ancestor as possible.

Several shells have normally gone by the name sh, including its predecessor the Thompson shell and derivatives ash, ksh (the Korn shell), and bash (the Bourne-again shell) bash.

In Linux distributions, sh is the system shell, the shell which is used in most automated scripts. Build scripts in particular use this shell. In most distributions, /bin/sh is a symbolic (soft) link to /bin/bash, which is also the most commonly used command line interface for users. However some distributions, particularly those in the Debian family, now use /bin/dash as their system shell and link /bin/sh to it. dash is very similar in its syntax to bash but links to fewer libraries and therefore runs faster.

see also

This article is a stub and needs to be finished. Plunge forward and help it grow!