Learning The Bash Shell, 3/e (Paperback)
暫譯: 學習 Bash Shell, 第3版 (平裝)
Cameron Newham
- 出版商: O'Reilly
- 出版日期: 2005-05-03
- 定價: $1,580
- 售價: 8.0 折 $1,264
- 語言: 英文
- 頁數: 354
- 裝訂: Paperback
- ISBN: 0596009658
- ISBN-13: 9780596009656
-
相關分類:
Command Line
立即出貨 (庫存 < 4)
買這商品的人也買了...
-
$480$379 -
$1,613Managing Projects with GNU make, 3/e (Paperback)
-
$650$514 -
$650$507 -
$580$452 -
$620$490 -
$290$229 -
$880$748 -
$620$490 -
$1,590$1,511 -
$880$695 -
$880$695 -
$650$507 -
$550$435 -
$420$332 -
$680$537 -
$720$569 -
$620$490 -
$990$891 -
$600$480 -
$620$527 -
$960$758 -
$820$648 -
$780$616 -
$356白帽子講瀏覽器安全
商品描述
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 的暢銷書《Learning the bash Shell》再次回歸。隨著 Linux 在伺服器和桌面環境中已成為一個成熟的角色,這本書已更新並重新整理,以反映所有最新的變化。事實上,這第三版是迄今為止最有價值的 bash shell 指南。
正如任何優秀的程式設計師所知,Linux 作業系統的使用者首先面對的就是 shell,這是 UNIX 對系統使用者介面的術語。換句話說,這是讓你通過鍵盤和顯示器與計算機進行交流的工具。掌握 bash shell 聽起來可能相當簡單,但實際上並非如此。事實上,有許多複雜的概念需要仔細解釋,而這正是《Learning the bash Shell》所提供的內容。
如果你是 shell 程式設計的新手,這本書提供了優秀的入門介紹,涵蓋了從最基本到最進階的功能。如果你已經寫了多年的 shell 腳本,它也提供了一個很好的方式來了解新 shell 的功能。《Learning the bash Shell》還充滿了實用的 shell 命令和程式範例,將使日常使用 Linux 變得更加輕鬆。透過這本書,程式設計師將學到:
- 如何將 bash 安裝為你的登入 shell
- 互動式 shell 使用的基本知識,包括 UNIX 檔案和目錄結構、標準 I/O 和背景工作
- 命令行編輯、歷史替換和鍵位綁定
- 如何在不編程的情況下自定義你的 shell 環境
- 基本 shell 程式設計的基本概念、流程控制結構、命令行選項和類型變數
- 處理過程,包括工作控制、過程、協程和子 shell
- 除錯技術,例如追蹤和詳細模式
- 實現系統範圍的 shell 自定義和與系統安全相關的功能的技術
**目錄:**
**前言**
**1. bash 基礎**
- 什麼是 Shell?
- 本書範圍
- UNIX Shell 的歷史
- 獲取 bash
- 互動式 Shell 使用
- 檔案
- 輸入和輸出
- 背景工作
- 特殊字符和引用
- 幫助
**2. 命令行編輯**
- 啟用命令行編輯
- 歷史列表
- emacs 編輯模式
- vi 編輯模式
- fc 命令
- 歷史擴展
- readline
- 鍵盤習慣
**3. 自定義你的環境**
- .bash_profile、.bash_logout 和 .bashrc 檔案
- 別名
- 選項
- Shell 變數
- 自定義和子過程
- 自定義提示
**4. 基本 Shell 程式設計**
- Shell 腳本和函數
- Shell 變數
- 字串運算子
- 命令替換
- 進階範例:pushd 和 popd
**5. 流程控制**
- if/else
- for
- case
- select
- while 和 until
**6. 命令行選項和類型變數**
- 命令行選項
- 類型變數
- 整數變數和算術
- 陣列
**7. 輸入/輸出和命令行處理**
- I/O 重定向器
- 字串 I/O
- 命令行處理
**8. 過程處理**
- 過程 ID 和工作號
- 工作控制
- 信號
- trap
- 協程
- 子 shell
- 過程替換
**9. 除錯 Shell 程式**
- 基本除錯輔助工具
- bash 除錯器
**10. bash 管理**
- 將 bash 安裝為標準 shell
- 環境自定義
- 系統安全功能
**11. Shell 腳本**
- 這是做什麼的?
- 啟動
- 潛在問題
- 不要使用 bash
**12. bash 為你的系統**
- 獲取 bash
- 解壓縮檔案
- 檔案中包含什麼
- 我該找誰?
**A. 相關 Shell**
- Bourne Shell
- IEEE 1003.2 POSIX Shell 標準
- Korn Shell
- pdksh
- zsh
- Shell 克隆和類 UNIX 平台
**B. 參考列表**
- 調用
- 提示字串自定義
- 內建命令和保留字
- 內建 Shell 變數
- 測試運算子
- set 選項
- shopt 選項
- I/O 重定向
- emacs 模式命令
- vi 控制模式命令
**C. 可加載的內建**
**D. 可編程的補全**
**索引**