Learning Shell Scripting with Zsh

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

Learning Shell Scripting with Zsh

Gastón Festari

Your one-stop guide to reading, writing, and debugging simple and complex Z shell scripts.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$12.60
RRP $17.99
Save 29%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$12.60
$29.99
$29.99p/m after trial
RRP $17.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Learning Shell Scripting with Zsh Book Cover
Learning Shell Scripting with Zsh
$ 17.99
$ 12.60
Penetration Testing with the Bash shell Book Cover
Penetration Testing with the Bash shell
$ 13.99
$ 9.80
Buy 2 for $22.40
Save $9.58
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781783282937
Paperback132 pages

Book Description

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.

Table of Contents

Chapter 1: Getting Started
Installing zsh
First run
The shell prompt
Summary
Chapter 2: Alias and History
Working with aliases
Expansion
Working with history
Summary
Chapter 3: Advanced Editing
Zsh line editor
Advanced editing
Don't call them widgets
Working with regions
Summary
Chapter 4: Globbing
Quoting your strings
Getting started with Globbing
Extended Globbing
The zmv function
Summary
Chapter 5: Completion
Getting started with completion
Command correction
Function definitions
Summary
Chapter 6: Tips and Tricks
Main resources
Helping tips
Other projects
Summary

What You Will Learn

  • 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

Authors

Table of Contents

Chapter 1: Getting Started
Installing zsh
First run
The shell prompt
Summary
Chapter 2: Alias and History
Working with aliases
Expansion
Working with history
Summary
Chapter 3: Advanced Editing
Zsh line editor
Advanced editing
Don't call them widgets
Working with regions
Summary
Chapter 4: Globbing
Quoting your strings
Getting started with Globbing
Extended Globbing
The zmv function
Summary
Chapter 5: Completion
Getting started with completion
Command correction
Function definitions
Summary
Chapter 6: Tips and Tricks
Main resources
Helping tips
Other projects
Summary

Book Details

ISBN 139781783282937
Paperback132 pages
Read More

Read More Reviews

Recommended for You

Linux Shell Scripting Cookbook, Second Edition Book Cover
Linux Shell Scripting Cookbook, Second Edition
$ 26.99
$ 5.40
Mastering Object-oriented Python Book Cover
Mastering Object-oriented Python
$ 26.99
$ 18.90
Git: Version Control for Everyone Book Cover
Git: Version Control for Everyone
$ 23.99
$ 16.80
Learning Python Design Patterns Book Cover
Learning Python Design Patterns
$ 14.99
$ 10.50
Practical Data Analysis Book Cover
Practical Data Analysis
$ 29.99
$ 21.00
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00