A Practical Guide to Linux Commands, Editors, and Shell Programming
暫譯: Linux 命令、編輯器與 Shell 程式設計實用指南

Mark G. Sobell

  • 出版商: Prentice Hall
  • 出版日期: 2005-07-11
  • 售價: $1,519
  • 語言: 英文
  • 頁數: 1008
  • 裝訂: Paperback
  • ISBN: 0131478230
  • ISBN-13: 9780131478237
  • 相關分類: LinuxCommand Line
  • 已絕版

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

相關主題

商品描述

Description:

The essential reference for core commands that Linux users need daily, along with superior tutorial on shell programming and much moreSystem administrators, software developers,  quality assurance engineers and others  working on a Linux system need to work from the command line in order to be effective.  Linux is famous for its huge number of command line utility programs, and the programs themselves are famous for their large numbers of options,  switches, and configuration files.  But the truth is that users will only use a limited (but still significant)  number of these utilities on a recurring basis, and then only with a subset of the most important and useful options, switches and configuration files.   This book cuts through all the noise and shows them which utilities are most useful, and which options most important.  And it contains examples, lot's and lot's of examples.  This is not just a reprint of the man pages.

And Linux is also famous for its "programmability."  Utilities are designed, by default, to work wtih other utilities within shell programs as a way of automating system tasks.  This book contains a superb introduction to Linux shell programming.  And since shell programmers need to write their programs in text editors, this book covers the two most popular ones: vi and emacs.

 

Table of Contents:

Preface.

1. Welcome to Linux.

    The GNU-Linux Connection

    The Heritage of Linux: UNIX

    What Is So Good About Linux?

    Overview of Linux

    Additional Features of Linux

    Chapter Summary

    Exercises

I. THE LINUX OPERATING SYSTEM.

2. Getting Started.

    Conventions Used in This Book

    Logging In

    Working with the Shell

    Curbing Your Power: Superuser Access

    Getting the Facts: Where to Find Documentation

    More About Logging In

    Chapter Summary

    Exercises

    Advanced Exercises

3. Command Line Utilities.

    Special Characters

    Basic Utilities

    Working with Files

    | (Pipe): Communicates Between Processes

    Four More Utilities

    Compressing and Archiving Files

    Locating Commands

    Obtaining User and System Information

    Communicating with Other Users

    Email

    Chapter Summary

    Exercises

    Advanced Exercises

4. The Linux Filesystem.

    The Hierarchical Filesystem

    Directory and Ordinary Files

    Working with Directories

    Access Permissions

    Links

    Chapter Summary

    Exercises

    Advanced Exercises

5. The Shell.

    The Command Line

    Standard Input and Standard Output

    Running a Program in the Background

    Filename Generation/Pathname Expansion

    Builtins

    Chapter Summary

    Exercises

    Advanced Exercises

II. THE EDITORS.

6. The vim Editor.

    History

    Tutorial: Creating and Editing a File with vim

    The compatible Parameter

    Introduction to vim Features

    Command Mode: Moving the Cursor

    Input Mode

    Command Mode: Deleting and Changing Text

    Searching and Substituting

    Miscellaneous Commands

    Yank, Put, and Delete Commands

    Reading and Writing Files

    Setting Parameters

    Advanced Editing Techniques

    Units of Measure

    Chapter Summary

    Exercises

    Advanced Exercises

7. The emacs Editor.

    History

    Tutorial: Getting Started with emacs

    Basic Editing Commands

    Online Help

    Advanced Editing

    Language-Sensitive Editing

    Customizing emacs

    More Information

    Chapter Summary

    Exercises

    Advanced Exercises

III. THE SHELLS.

8. The Bourne Again Shell.

    Background

    Shell Basics

    Parameters and Variables

    Processes

    History

    Aliases

    Functions

    Controlling bash Features and Options

    Processing the Command Line

    Chapter Summary

    Exercises

    Advanced Exercises

9. The TC Shell.

    Shell Scripts

    Entering and Leaving the TC Shell

    Features Common to the Bourne Again and TC Shells

    Redirecting Standard Error

    Working with the Command Line

    Variables

    Control Structures

    Builtins

    Chapter Summary

    Exercises

    Advanced Exercises

IV. PROGRAMMING TOOLS.

10. Programming Tools.

    Programming in C

    Using Shared Libraries

    make: Keeps a Set of Programs Current

    Debugging C Programs

    Threads

    System Calls

    Source Code Management

    Chapter Summary

    Exercises

    Advanced Exercises

11. Programming the Bourne Again Shell.

    Control Structures

    File Descriptors

    Parameters and Variables

    Builtin Commands

    Expressions

    Shell Programs

    Chapter Summary

    Exercises

    Advanced Exercises

12. The gawk Pattern Processing Language.

    Syntax

    Arguments

    Options

    Notes

    Language Basics

    Examples

    Advanced gawk Programming

    Error Messages

    Chapter Summary

    Exercises

    Advanced Exercises

13. The sed Editor.

    Syntax

    Arguments

    Options

    Editor Basics

    Examples

    Chapter Summary

    Exercises

    Part V: Command Reference

    Standard Multiplicative Suffixes

    Common Options

    The sample Utility

    sample: Very brief description of what the utility does

    aspell: Checks a file for spelling errors

    at: Executes commands at a specified time

    bzip2: Compresses or decompresses files

    cal: Displays a calendar

    cat: Joins and displays files

    cd: Changes to another working directory

    chgrp: Changes the group associated with a file

    chmod: Changes the access mode (permissions) of a file

    chown: Changes the owner of a file and/or the group the file is associated with

    cmp: Compares two files

    comm: Compares sorted files

    configure: Configures source code automatically

    cp: Copies files

    cpio: Creates an archive or restores files from an archive

    crontab: Maintains crontab files

    cut: Selects characters or fields from input lines

    date: Displays or sets the system time and date

    dd: Converts and copies a file

    df: Displays disk space usage

    diff: Displays the differences between two files

    du: Displays information on disk usage by file

    echo: Displays a message

    expr: Evaluates an expression

    file: Displays the classification of a file

    find: Finds files based on criteria

    finger: Displays information about users

    fmt: Formats text very simply

    fsck: Checks and repairs a filesystem

    ftp: Transfers files over a network

    gcc: Compiles C and C++ programs

    grep: Searches for a pattern in files

    gzip: Compresses or decompresses files

    head: Displays the beginning of a file

    kill: Terminates a process by PID

    killall: Terminates a process by name

    less: Displays text files, one screen at a time

    ln: Makes a link to a file

    lpr: Sends files to printers

    ls: Displays information about one or more files

    make: Keeps a set of programs current

    man: Displays documentation for commands

    mkdir: Creates a directory

    mkfs: Creates a filesystem on a device

    Mtools: Uses DOS-style commands on files and directories

    mv: Renames or moves a file

    nice: Changes the priority of a command

    nohup: Runs a command that keeps running after you log out

    od: Dumps the contents of a file

    paste: Joins corresponding lines from files

    pr: Paginates files for printing

    ps: Displays process status

    rcp: Copies one or more files to or from a remote system

    rlogin: Logs in on a remote system

    rm: Removes a file (deletes a link)

    rmdir:Removes a directory

    rsh: Executes commands on a remote system

    scp: Securely copies one or more files to or from a remote system

    sleep: Creates a process that sleeps for a specified interval

    sort: Sorts and/or merges files

    split: Divides a file in into sections

    ssh: Securely executes commands on a remote system

    strings: Displays strings of printable characters

    stty: Displays or sets terminal parameters

    tail: Displays the last part (tail) of a file

    tar: Stores or retrieves files to/from an archive file

    tee: Copies standard input to standard output and one or more files

    telnet: Connects to a remote system over a network

    test: Evaluates an expression

    top: Dynamically displays process status

    touch: Changes a file's access and/or modification time

    tr: Replaces specified characters

    tty: Displays the terminal pathname

    tune2fs: Changes parameters on an ext2 or ext3 filesystem

    umask: Establishes the file-creation permissions mask

    uniq: Displays unique lines

    w: Displays information about system users

    wc: Displays the number of lines, words, and bytes

    which: Shows where in PATH a command is located

    who: Displays information about logged-in users

    xargs: Converts standard input into command lines

VI. APPENDIXES.

Appendix A: Regular Expressions.

    Characters

    Delimiters

    Simple Strings

    Special Characters

    Rules

    Bracketing Expressions

    The Replacement String

    Extended Regular Expressions

    Appendix Summary

Appendix B: Help.

    Solving a Problem

    Finding Linux-Related Information

    Specifying a Terminal

Appendix C: Keeping the System Up-to-Date.

    yum: Updates and Installs Packages

    Apt: An Alternative to yum

    BitTorrent

Glossary.

Index.

商品描述(中文翻譯)

描述:
本書是 Linux 使用者每日所需核心命令的基本參考資料,並提供優質的 shell 程式設計教程及更多內容。系統管理員、軟體開發人員、品質保證工程師及其他在 Linux 系統上工作的人員,必須從命令行進行操作才能有效率。Linux 以其龐大的命令行工具程式而聞名,而這些程式本身則以其眾多的選項、開關和配置檔而著稱。但事實上,使用者只會定期使用有限(但仍然重要)數量的這些工具,並且僅使用最重要和有用的選項、開關和配置檔。本書剖析所有的噪音,告訴他們哪些工具最有用,哪些選項最重要。並且它包含了大量的範例,很多很多的範例。這不僅僅是 man 頁面的重印。

而且 Linux 也以其「可編程性」而聞名。工具的設計默認是與其他工具在 shell 程式中協同工作,以自動化系統任務。本書包含了對 Linux shell 程式設計的極佳介紹。由於 shell 程式設計師需要在文本編輯器中編寫程式,因此本書涵蓋了兩個最受歡迎的編輯器:vi 和 emacs。

目錄:
前言。
1. 歡迎來到 Linux。
GNU-Linux 連結
Linux 的傳承:UNIX
Linux 有什麼好處?
Linux 概述
Linux 的其他特性
章節摘要
練習
I. Linux 作業系統。
2. 開始使用。
本書中使用的約定
登入
使用 Shell
限制權限:超級使用者訪問
獲取事實:查找文檔的位置
更多關於登入的資訊
章節摘要
練習
進階練習
3. 命令行工具。
特殊字符
基本工具
文件操作
| (管道):進程之間的通信
另外四個工具
壓縮和歸檔文件
查找命令
獲取用戶和系統信息
與其他用戶通信
電子郵件
章節摘要
練習
進階練習
4. Linux 檔案系統。
層次檔案系統
目錄和普通文件
操作目錄
訪問權限
連結
章節摘要
練習
進階練習
5. Shell。
命令行
標準輸入和標準輸出
在背景中運行程式
檔名生成/路徑擴展
內建命令
章節摘要
練習
進階練習
II. 編輯器。
6. vim 編輯器。
歷史
教程:使用 vim 創建和編輯文件
兼容參數
vim 特性的介紹
命令模式:移動光標
輸入模式
命令模式:刪除和更改文本
搜索和替換
其他命令
拷貝、粘貼和刪除命令
讀取和寫入文件
設置參數
進階編輯技術
測量單位