Science  People  Locations  Timeline
Index: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Home > Bash


 

:This article is about the UNIX shell named Bash. For information about the popular website with humorous quotes, see Bash.org.

Bash is a UNIX command shell written for the GNU project. Its name is an acronym for Bourne-again shell — a pun on the Bourne shell (sh), which was an early, important UNIX shell. The Bourne shell was the shell distributed with Version 7 UNIX, circa 1978. The original Bourne shell was written by Stephen Bourne, then a researcher at Bell Labs. The Bash shell was written in 1987 by Brian Fox . In 1990, Chet Ramey became the primary maintainer. Bash is the default shell on most GNU/Linux systems as well as on Mac OS X Panther, and it can be run on most UNIX-like operating systems. It has also been ported to Microsoft Windows by the Cygwin project.

1 How to install Bash

To install Bash on a Windows system, simply install Cygwin from www.cygwin.com. Bash is installed by default when Cygwin is installed. See the Cygwin documentation for installation instructions.

To install Bash on a UNIX-like system, you must download the Bash source code, build it, and install the resulting executable. After installing Bash, you may want to make it your login shell.

1.1 Downloading Bash source code

The Bash source code can be downloaded from the Bash section of the GNU Project page. The latest stable version is version 3.0. It is distributed under the GNU General Public License.

1.2 Building Bash

After you download the source code, you will have a file with a name of the form bash-XXX.tar.gz, where XXX is the Bash version. This file is a tarIn computing, the tar file format is a type of archive file format: the Tape ARchive format. These files are produced by the Unix command tar and were standardized by POSIX. 1-1998 and later POSIX. It is used widely to archive and unarchive files, which m archive file that has been compressed using gzipgzip is short for GNU Zip, a GNU open-source replacement for the Unix compress program. Gzip is based on the deflate algorithm, which is a combination of LZ77 and Huffman coding. Deflate' was developed in response to patents that covered LZW and other com. Once you download the source code archive, you can build Bash using the following sequence of commands (assuming you downloaded version 3.0):

tar zxvf bash-3.0.tar.gz cd bash-3.0 ./configure make

The first command above (tar zxvf bash-3.0.tar.gz) unpacks the source code archive into a subdirectory named bash-3.0. The second command above (cd bash-3.0) changes your current working directory into the newly created directory. The third command above (./configure) configures the Bash source code to prepare it to be built on your operating systemIn computing, an operating system OS is the system software responsible for the direct control and management of hardware and basic system operations, as well as running application software such as word processing programs and web browsers. In general, t. This command will produce dozens and dozens of lines of output, which you can ignore unless it terminates by reporting an error. The fourth command above (make) builds the Bash executable from its source code. This command will produce hundreds of lines of output, which you can also ignore unless it terminates with an error. If the build is successful, you will find a new executable file named bash in the bash-3.0 directory.



Read more »

Non User