The first thing users of the UNIX or Linux operating systems come face to face with is the shell. “Shell” is the UNIX term for a user interface to the system—something that lets you communicate with the computer via the keyboard and the display. Shells are just separate programs that encapsulate the system, and, as such, there are many to choose from.
Systems are usually set up with a “standard” shell that new users adopt without question. However, some of these standard shells are rather old and lack many features of the newer shells. This is a shame, because shells have a large bearing on one’s working environment. Since changing shells is as easy as changing hats, there is no reason not to change to the latest and greatest in shell technology.
Of the many shells to choose from, this book introduces the Bourne Again shell (bash for short), a modern general-purpose shell. Other useful modern shells are the Korn shell (ksh) and the “Tenex C shell” (tcsh); both are also the subjects of O’Reilly handbooks.
This book is relevant to all versions of bash, although older versions lack some of the features of the most recent version. [1]You can easily find out which version you are using by typing echo $BASH_VERSION. The earliest public version of bash was 1.0, and the most recent is 2.01 (released in May 1997). If you have an older version, you might like to upgrade to the latest one. Chapter 11, shows you how to go about it.
[1] Even though version 2.0 has been out for a while, bash version 1.14.x is still in widespread use. Throughout this book we have clearly marked with footnotes the features that are not present in the earlier versions.
Get Learning the bash Shell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.