Learning Shell Scripting with Zsh
暫譯: 使用 Zsh 學習 Shell 腳本編寫

Gaston Festari

  • 出版商: Packt Publishing
  • 出版日期: 2014-01-17
  • 售價: $1,470
  • 貴賓價: 9.5$1,397
  • 語言: 英文
  • 頁數: 132
  • 裝訂: Paperback
  • ISBN: 1783282932
  • ISBN-13: 9781783282937
  • 相關分類: Command Line
  • 海外代購書籍(需單獨結帳)

商品描述

Your one-stop guide to reading, writing, and debugging simple and complex Z shell scripts

Overview

  • A step-by-step guide that will show you how to use Zsh and its repertoire of powerful features to improve the efficiency of your daily tasks
  • Learn how to configure and use Zsh
  • Discover some advanced features of Zsh such as process and parameter substitution, running on restricted functionality mode, and emulating other shells

In Detail

Zsh has become incredibly popular in recent times and reasonably so; the shell boasts some really great features such as command completion, filename generation, and history sharing among instances of the shell. Learning to use them to your advantage will prove to be really valuable and will save you from lots of tedious and overly-complex tasks.

This hands-on guide will show you how to configure and use Zsh for work and daily tasks. It provides a clear introduction to the more powerful features of the shell such as globbing and completion. This book will help you take advantage of the real power behind the UNIX shell on both desktops and servers through real-world examples.

This book will help you understand the features of Zsh and make it one of the most valuable assets in your toolbox. It will teach you how to use the shell history to look up and edit previously typed entries and take advantage of the line-editor module to speed up your typing and editing of commands. You will be able to create your own completion functions and ensure you never mistype a command or have to look at the manpages again.

You will learn how to define your own aliases and learn about filename generation so you can do more by typing even less. You will also discover the essentials of Zsh and go deeper with its more advanced features. When you are done with this book, your time with the command line will be much more enjoyable and productive.

What you will learn from this book

  • Set up and configure the advanced aspects of Zsh such as process and parameter substitution, running on restricted functionality mode, and emulating other shells, for example, ksh and Bourne
  • Customize the shell prompt to display the information you need
  • Work with the line-editor module to type less and do more
  • Use filename generation, also known as globbing, to work with files and folders
  • Discover programmable completion and never mistype a command or its options again
  • Tame the shell history and use it simultaneously on multiple shells with just a few keystrokes
  • Expand on Zsh's built-in modules and functionality by creating your own functions

Approach

A step-by-step tutorial that will teach you, through real-world examples, how to configure and use Zsh and its various features.

Who this book is written for

If you are a system administrator, developer, or computer professional involved with UNIX who are looking to improve on their daily tasks involving the UNIX shell, "Learning Shell Scripting with Zsh" will be great for you. It's assumed that you have some familiarity with an UNIX command-line interface and feel comfortable with editors such as Emacs or vi.

商品描述(中文翻譯)

您的全方位指南,教您如何閱讀、編寫和除錯簡單及複雜的 Z shell 腳本

概述
- 一個逐步指南,將向您展示如何使用 Zsh 及其強大的功能來提高日常任務的效率
- 學習如何配置和使用 Zsh
- 探索 Zsh 的一些進階功能,例如過程和參數替換、在受限功能模式下運行以及模擬其他 shell

詳細內容
Zsh 最近變得非常受歡迎,這是有原因的;這個 shell 擁有一些非常棒的功能,例如命令補全、檔名生成和實例之間的歷史共享。學會利用這些功能將對您非常有價值,並能幫助您避免許多繁瑣和過於複雜的任務。

這本實用指南將向您展示如何配置和使用 Zsh 來處理工作和日常任務。它提供了對 shell 更強大功能的清晰介紹,例如 globbing 和補全。這本書將幫助您通過實際範例,充分利用 UNIX shell 在桌面和伺服器上的真正力量。

這本書將幫助您理解 Zsh 的功能,並使其成為您工具箱中最有價值的資產之一。它將教您如何使用 shell 歷史來查找和編輯先前輸入的條目,並利用行編輯器模組來加快您輸入和編輯命令的速度。您將能夠創建自己的補全函數,確保您不會錯誤輸入命令或再次查看手冊頁。

您將學會如何定義自己的別名,並了解檔名生成,以便您可以通過更少的輸入來完成更多的工作。您還將發現 Zsh 的基本要素,並深入了解其更進階的功能。當您完成這本書後,您在命令行上的時間將變得更加愉快和高效。

您將從這本書中學到的內容
- 設置和配置 Zsh 的進階方面,例如過程和參數替換、在受限功能模式下運行以及模擬其他 shell,例如 ksh 和 Bourne
- 自訂 shell 提示,以顯示您所需的信息
- 使用行編輯器模組來減少輸入並增加效率
- 使用檔名生成(也稱為 globbing)來處理檔案和資料夾
- 探索可編程補全,確保您不會再次錯誤輸入命令或其選項
- 駕馭 shell 歷史,並在多個 shell 上同時使用,只需幾個按鍵
- 通過創建自己的函數來擴展 Zsh 的內建模組和功能

方法
這是一個逐步的教程,將通過實際範例教您如何配置和使用 Zsh 及其各種功能。

本書的讀者對象
如果您是系統管理員、開發人員或從事 UNIX 的計算機專業人士,並希望改善與 UNIX shell 相關的日常任務,《Learning Shell Scripting with Zsh》將非常適合您。本書假設您對 UNIX 命令行介面有一定的熟悉度,並對 Emacs 或 vi 等編輯器感到舒適。