MTU Cork Library Catalogue

Syndetics cover image
Image from Syndetics

Learning the bash shell / Cameron Newham and Bill Rosenblatt.

By: Newham, Cameron.
Contributor(s): Rosenblatt, Bill.
Material type: materialTypeLabelBookSeries: Nutshell handbook.Publisher: Beijing : O'Reilly, 1998Edition: 2nd ed.Description: xvi, 318 p. : ill. ; 24 cm.ISBN: 1565923472.Subject(s): UNIX Shells | UNIX (Computer file) | User interfaces (Computer systems)DDC classification: 005.4465
Contents:
bash Basics -- Command-line Editing -- Customizing your environment -- Basic shell Programming -- Flow Control -- Command-line options and typed variables -- Input/output and command-line processing -- Process Handling -- Debugging shell programs -- bash administration -- bash for your system.
Holdings
Item type Current library Call number Copy number Status Date due Barcode Item holds
General Lending MTU Bishopstown Library Lending 005.4465 (Browse shelf(Opens below)) 1 Available 00078097
Total holds: 0

Enhanced descriptions from Syndetics:

The first thing users of the Linux operating system 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 display. Bash , the Free Software Foundation's "Bourne Again Shell," is the default shell for Linux, the popular free UNIX-like operating system. It's also a replacement for the standard UNIX Bourne shell, which serves both as a user interface and as a programming language. Like the FSF's other tools, bash is more than a mere replacement: it extends the Bourne shell in many ways. Features include command line editing, key bindings, integrated programming features, command completion, control structures (especially the select construct, which enables you to create menus easily), and new ways to customize your environment.Whether you want to use bash for its user interface or its programming features you will find Learning the bash Shell a valuable guide. The book covers all of bash 's features, both for interactive use and programming. If you are new to shell programming, Learning the bash Shell provides an excellent introduction, covering everything from the most basic to the most advanced features, like signal handling and command line processing. If you've been writing shell scripts for years, it offers a great way to find out what the new shell offers. The book is full of examples of shell commands and programs that are designed to be useful in your everyday life as a user, not just to illustrate the feature being explained. All of these examples are freely available to you online on the Internet.This second edition covers all of the features of bash Version 2.0, while still applying to bash Version 1.x. New features include the addition of one-dimensional arrays, parameter expansion, and more pattern-matching operations. bash 2.0 provides even more conformity with POSIX.2 standards, and in POSIX.2 mode is completely POSIX.2 conformant. This second edition covers several new commands, security improvements, additions to ReadLine, improved configuration and installation, and an additional programming aid, the bash shell debugger.With this book you'll learn:

How to install bash as your login shell The basics of interactive shell use, including UNIX file and directory structures, standard I/O, and background jobs Command line editing, history substitution, and key bindings How to customize your shell environment without programming The nuts and bolts of basic shell programming, flow control structures, command-line options and typed variables Process handling, from job control to processes, coroutines and subshells Debugging techniques, such as trace and verbose modes Techniques for implementing system-wide shell customization and features related to system security

Previous ed.: 1995.
Includes index.

bash Basics -- Command-line Editing -- Customizing your environment -- Basic shell Programming -- Flow Control -- Command-line options and typed variables -- Input/output and command-line processing -- Process Handling -- Debugging shell programs -- bash administration -- bash for your system.

Table of contents provided by Syndetics

  • Preface (p. ix)
  • 1 bash Basics (p. 1)
  • What Is a Shell? (p. 2)
  • Scope of This Book (p. 2)
  • History of UNIX Shells (p. 3)
  • Getting bash (p. 5)
  • Interactive Shell Use (p. 6)
  • Files (p. 7)
  • Input and Output (p. 14)
  • Background Jobs (p. 18)
  • Special Characters and Quoting (p. 21)
  • Help (p. 27)
  • 2 Command-Line Editing (p. 28)
  • The History File (p. 30)
  • emacs Editing Mode (p. 30)
  • vi Editing Mode (p. 38)
  • The fc Command (p. 47)
  • History Expansion (p. 50)
  • readline (p. 51)
  • Keyboard Habits (p. 55)
  • 3 Customizing Your Environment (p. 57)
  • The .bash_profile, .bash_logout, and .bashrc Files (p. 58)
  • Aliases (p. 60)
  • Options (p. 63)
  • Shell Variables (p. 65)
  • Customization and Subprocesses (p. 76)
  • Customization Hints (p. 81)
  • 4 Basic Shell Programming (p. 83)
  • Shell Scripts and Functions (p. 83)
  • Shell Variables (p. 88)
  • String Operators (p. 94)
  • Command Substitution (p. 103)
  • Advanced Examples: pushd and popd (p. 107)
  • 5 Flow Control (p. 111)
  • if/else (p. 112)
  • for (p. 126)
  • case (p. 133)
  • select (p. 136)
  • while and until (p. 139)
  • 6 Command-Line Options and Typed Variables (p. 141)
  • Command-Line Options (p. 141)
  • Typed Variables (p. 150)
  • Integer Variables and Arithmetic (p. 151)
  • Arrays (p. 160)
  • 7 Input/Output and Command-Line Processing (p. 163)
  • I/O Redirectors (p. 163)
  • String I/O (p. 169)
  • Command-Line Processing (p. 177)
  • 8 Process Handling (p. 195)
  • Process IDs and Job Numbers (p. 196)
  • Job Control (p. 197)
  • Signals (p. 200)
  • trap (p. 207)
  • Coroutines (p. 213)
  • Subshells (p. 217)
  • Process Substitution (p. 219)
  • 9 Debugging Shell Programs (p. 220)
  • Basic Debugging Aids (p. 221)
  • A bash Debugger (p. 226)
  • 10 bash Administration (p. 247)
  • Installing bash as the Standard Shell (p. 247)
  • Environment Customization (p. 250)
  • System Security Features (p. 254)
  • 11 bash for Your System (p. 257)
  • Obtaining bash (p. 257)
  • Unpacking the Archive (p. 259)
  • What's in the Archive (p. 259)
  • Who Do I Turn to? (p. 264)
  • A Related Shells (p. 267)
  • B Reference Lists (p. 277)
  • C Loadable Built-Ins (p. 293)
  • D Syntax (p. 298)
  • E Obtaining Sample Programs (p. 302)
  • Index (p. 305)

Author notes provided by Syndetics

Cameron Newham lives in Perth, Western Australia. After completing a Bachelor of Science majoring in information technology and geography at the University of Western Australia, Cameron joined Universal Defence Systems (later to become Australian Defence Industries) as a software engineer. He has been with ADI for six years, working on various aspects of command and control systems. In his spare time Cameron can be found surfing the Internet, ballroom dancing, or driving his sports car. He also has more than a passing interest in space science, 3D graphics, synthesiser music, and Depeche Mode. Bill Rosenblatt is author of the the O'Reilly Nutshell Handbook® Learning the Korn Shell; co-author, with Deb Cameron, of Learning GNU Emacs; and a contributor to UNIX Power Tools. He is director of publishing systems at the Times Mirror Company in New York City and a columnist in SunWorld Online magazine on the World Wide Web. Bill received a B.S.E. from Princeton University and an M.S. and A.B.D. from the University of Massachusetts at Amherst, each in some variant of computer science. His interests in the computing field include multimedia databases, electronic publishing, and object- oriented systems. Outside of the computing field, he's interested in jazz, classical music, antique maps, and Sherlock Holmes pastiche novels. Bill lives on the Upper West Side of Manhattan. He wishes his landlord allowed pets so that he could truthfully claim to have a dog and cat with suitably droll names like "Coltrane" and "Ravel."

Bill Rosenblatt is president of GiantSteps/Media Technology Strategies, a consulting firm in New York City. Before founding GiantSteps, Bill was CTO of Fathom, an online content and education company associated with Columbia University and other scholarly institutions. He has been a technology executive at McGraw-Hill and Times Mirror, and head of strategic marketing for media and publishing at Sun Microsystems. Bill was also one of the architects of the Digital Object Identifier (DOI), a standard for online content identification and DRM.

Powered by Koha