Learning The Bash Shell, 3/e (Paperback) (學習 Bash Shell(第三版))

Cameron Newham

  • 出版商: O'Reilly
  • 出版日期: 2005-05-03
  • 定價: $1,580
  • 售價: 8.0$1,264
  • 語言: 英文
  • 頁數: 354
  • 裝訂: Paperback
  • ISBN: 0596009658
  • ISBN-13: 9780596009656
  • 相關分類: Command Line
  • 立即出貨 (庫存 < 4)

買這商品的人也買了...

相關主題

商品描述

Description:

O'Reilly's bestselling book on Linux's bash shell is at it again. Now that Linux is an established player both as a server and on the desktop Learning the bash Shell has been updated and refreshed to account for all the latest changes. Indeed, this third edition serves as the most valuable guide yet to the bash shell.

As any good programmer knows, the first thing users of the Linux operating system come face to face with is the shell the UNIX term for a user interface to the system. In other words, it's what lets you communicate with the computer via the keyboard and display. Mastering the bash shell might sound fairly simple but it isn't. In truth, there are many complexities that need careful explanation, which is just what Learning the bash Shell provides.

If you are new to shell programming, the book provides an excellent introduction, covering everything from the most basic to the most advanced features. And if you've been writing shell scripts for years, it offers a great way to find out what the new shell offers. Learning the bash Shell is also full of practical examples of shell commands and programs that will make everyday use of Linux that much easier. With this book, programmers will 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

 

Table of Contents:

Preface

1. bash Basics

     What Is a Shell?

     Scope of This Book

     History of UNIX Shells

     Getting bash

     Interactive Shell Use

     Files

     Input and Output

     Background Jobs

     Special Characters and Quoting

     Help

2. Command-Line Editing

     Enabling Command-Line Editing

     The History List

     emacs Editing Mode

     vi Editing Mode

     The fc Command

     History Expansion

     readline

     Keyboard Habits

3. Customizing Your Environment

     The .bash_profile, .bash_logout, and .bashrc Files

     Aliases

     Options

     Shell Variables

     Customization and Subprocesses

     Customization Hints

4. Basic Shell Programming

     Shell Scripts and Functions

     Shell Variables

     String Operators

     Command Substitution

     Advanced Examples: pushd and popd

5. Flow Control

     if/else

     for

     case

     select

     while and until

6. Command-Line Options and Typed Variables

     Command-Line Options

     Typed Variables

     Integer Variables and Arithmetic

     Arrays

7. Input/Output and Command-Line Processing

     I/O Redirectors

     String I/O

     Command-Line Processing

8. Process Handling

     Process IDs and Job Numbers

     Job Control

     Signals

     trap

     Coroutines

     Subshells

     Process Substitution

9. Debugging Shell Programs

     Basic Debugging Aids

     A bash Debugger

10. bash Administration

     Installing bash as the Standard Shell

     Environment Customization

     System Security Features

11. Shell Scripting

     What's That Do?

     Starting Up

     Potential Problems

     Don't Use bash

12. bash for Your System

     Obtaining bash

      Unpacking the Archive

     What's in the Archive

     Who Do I Turn to?

A. Related Shells

     The Bourne Shell

     The IEEE 1003.2 POSIX Shell Standard

     The Korn Shell

     pdksh

     zsh

     Shell Clones and Unix-like Platforms

B. Reference Lists

     Invocation

     Prompt String Customizations

     Built-In Commands and Reserved Words

     Built-In Shell Variables

     Test Operators

     set Options

     shopt Options

     I/O Redirection

     emacs Mode Commands

     vi Control Mode Commands

C. Loadable Built-Ins

D. Programmable Completion

Index

商品描述(中文翻譯)

描述:
O'Reilly暢銷書籍《Linux的bash shell學習》再次回歸。現在Linux作為服務器和桌面的確立玩家,《學習bash Shell》已經更新和刷新以適應所有最新的變化。事實上,這第三版是迄今為止對bash shell最有價值的指南。正如任何優秀的程序員所知,Linux操作系統的用戶首次面對的是shell,這是UNIX術語,用於系統的用戶界面。換句話說,它是通過鍵盤和顯示器與計算機通信的方式。掌握bash shell可能聽起來相當簡單,但實際上並非如此。事實上,有許多需要仔細解釋的複雜性,這正是《學習bash Shell》所提供的。如果您是新手shell編程,本書提供了一個很好的介紹,涵蓋了從最基本到最高級功能的所有內容。如果您多年來一直在編寫shell腳本,它提供了一種了解新shell提供的功能的好方法。《學習bash Shell》還充滿了實用的shell命令和程序的實例,這將使日常使用Linux變得更加容易。通過這本書,程序員將學到:
- 如何將bash安裝為您的登錄shell
- 互動式shell使用的基礎知識,包括UNIX文件和目錄結構,標準I/O和後台作業
- 命令行編輯,歷史替換和鍵綁定
- 如何在不編程的情況下自定義您的shell環境
- 基本shell編程的細節,流程控制結構,命令行選項和類型變量
- 進程處理,從作業控制到進程,協程和子shell
- 調試技術,如跟踪和詳細模式
- 實施系統范圍的shell自定義和與系統安全相關的功能

目錄:
- 前言
- 第1章 bash基礎
- 第2章 命令行編輯
- 第3章 自定義您的環境