Learning Shell Scripting with Zsh

Gaston Festari

  • 出版商: Packt Publishing
  • 出版日期: 2014-01-17
  • 售價: $1,370
  • 貴賓價: 9.5$1,302
  • 語言: 英文
  • 頁數: 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 的更強大功能,如通配符和自動完成。通過實例,本書將幫助您充分利用 UNIX shell 在桌面和服務器上的真正威力。

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

您將學習如何定義自己的別名,並了解文件名生成,這樣您就可以更少輸入更多。您還將發現 Zsh 的基本知識,並深入了解其更高級功能。完成本書後,您在命令行上的時間將更加愉快和高效。

本書將教您以下內容:
- 配置和使用 Zsh 的高級功能,如進程和參數替換、運行受限功能模式和模擬其他 shell(例如 ksh 和 Bourne)
- 自定義 shell 提示以顯示所需信息
- 使用行編輯器模塊,更少輸入更多
- 使用文件名生成(通配符)處理文件和文件夾
- 發現可編程自動完成,永遠不再輸入錯誤的命令或選項
- 管理 shell 歷史記錄,僅需幾個按鍵即可在多個 shell 上同時使用
- 通過創建自己的函數擴展 Zsh 的內置模塊和功能

這是一本逐步教學,通過實例向您展示如何配置和使用 Zsh 及其各種功能。

本書適合系統管理員、開發人員或與 UNIX 相關的電腦專業人士,他們希望改進使用 UNIX shell 的日常任務。假設您對 UNIX 命令行界面有一定的熟悉度,並且對於像 Emacs 或 vi 這樣的編輯器感到舒適。