Best Unix Shell Books

Shell scripting helps systems administrators and programmers do tedious computer tasks.

1. Python for DevOps: Learn Ruthlessly Effective Automation

Author: by Noah Gift
Published at: O'Reilly Media; 1st edition (January 7, 2020)
ISBN: 978-1492057697

View on Amazon

Much has changed in technology over the past decade. Data is hot, the cloud is ubiquitous, and many organizations need some form of automation. Throughout these transformations, Python has become one of the most popular languages in the world. This practical resource shows you how to use Python for everyday Linux systems administration tasks with today’s most useful DevOps tools, including Docker, Kubernetes, and Terraform.

Learning how to interact and automate with Linux is essential for millions of professionals. Python makes it much easier. With this book, you’ll learn how to develop software and solve problems using containers, as well as how to monitor, instrument, load-test, and operationalize your software.

Looking for effective ways to “get stuff done” in Python?This is your guide. Python foundations, including a brief introduction to the languageHow to automate text, write command-line tools, and automate the filesystemLinux utilities, package management, build systems, monitoring and instrumentation, and automated testingCloud computing, infrastructure as code, Kubernetes, and serverlessMachine learning operations and data engineering from a DevOps perspectiveBuilding, deploying, and operationalizing a machine learning project

2. Bash Pocket Reference: Help for Power Users and Sys Admins

Author: by Arnold Robbins
Published at: O'Reilly Media; 2nd edition (March 22, 2016)
ISBN: 978-1491941591

View on Amazon

It’s simple: if you want to interact deeply with Mac OS X, Linux, and other Unix-like systems, you need to know how to work with the Bash shell. This concise little book puts all of the essential information about Bash right at your fingertips.

You’ll quickly find answers to the annoying questions that generally come up when you’re writing shell scripts: What characters do you need to quote? How do you get variable substitution to do exactly what you want? How do you use arrays?

Updated for Bash version 4. 4, this book has the answers to these and other problems in a format that makes browsing quick and easy. Topics include:Invoking the shellSyntaxFunctions and variablesArithmetic expressionsCommand historyProgrammable completionJob controlShell optionsCommand executionCoprocessesRestricted shellsBuilt-in commands

3. Linux Command Bible 3e

Author: by Richard Blum
Published at: Wiley; 3rd edition (January 20, 2015)
ISBN: 978-1118983843

View on Amazon

Talk directly to your system for a faster workflow with automation capability Linux Command Line and Shell Scripting Bible is your essential Linux guide. With detailed instruction and abundant examples, this book teaches you how to bypass the graphical interface and communicate directly with your computer, saving time and expanding capability.

This third edition incorporates thirty pages of new functional examples that are fully updated to align with the latest Linux features. Beginning with command line fundamentals, the book moves into shell scripting and shows you the practical application of commands in automating frequently performed functions.

This guide includes useful tutorials, and a desk reference value of numerous examples. The Linux command line allows you to type specific shell commands directly into the system to manipulate files and query system resources. Command line statements can be combined into short programs called shell scripts, a practice increasing in popularity due to its usefulness in automation.

4. Learning the bash Shell: Unix Shell Programming (In a Nutshell (O'Reilly))

Author: by Cameron Newham
Published at: O'Reilly Media; Third edition (April 19, 2005)
ISBN: 978-0596009656

View on Amazon

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.

5. Linux For Dummies

Author: by Richard Blum
Published at: For Dummies; 10th edition (September 23, 2020)
ISBN: 978-1119704256

View on Amazon

Your step-by-step guide to the latest in Linux Nine previous editions of this popular benchmark guide can’t be wrong! Whether you’re new to Linux and need a step-by-step guide or are a pro who wants to catch up with recent distributions, Linux For Dummies, 10th Edition has your back.

Covering everything from installation to automation, this updated edition focuses on openSUSE and Ubuntu and includes new and refreshed materialas well as chapters on building a web server and creating simple shell scripts. In his friendly, no-jargon style, IT professional and tech higher education instructor Richard Blum draws on more than 10 years of teaching to show you just why Linux’s open source operating systems are relied on to run a huge proportion of the world’s online infrastructure, servers, supercomputers, and NAS devicesand how you can master them too.

Study the thinking behind Linux Choose the right installation approach Pick up the basicsfrom prepping to desktops Get fancy with music, video, movies, and games Whatever your Linux needswork, fun, or just a hobbythis bestselling, evergreen guide will get you up and coding in the open source revolution in no time at all.

6. Mastering Linux Shell Scripting: A practical guide to Linux command-line, Bash scripting, and Shell programming, 2nd Edition

Author: by Mokhtar Ebrahim
Published at: Packt Publishing; 2nd edition (April 19, 2018)
ISBN: 978-1788990554

View on Amazon

Master the complexities of Bash shell scripting and unlock the power of shell for your enterpriseKey FeaturesIdentify high-level steps such as verifying user inputUse the command line and conditional statements for creating and executing simple shell scriptsCreate and edit dynamic shell scripts to manage complex and repetitive tasksBook DescriptionMastering shell scripting is made easy with this book that guides you through everything, right from using the Linux command line through to creating Bash scripts, while also helping you make informed choices about the elements you employ.

You can use your favorite editor and start writing Bash scripts in a step-by-step manner. The book will also help you get to grips with the fundamentals of creating and running a script in normal mode, as well as in debug mode.

You’ll explore code snippets from various conditional statements, and realize the power of repetition and loops in your shell script. You will gradually learn to write complex shell scripts, before delving into file system administration, directories, and system administration such as networking, process management, user authentication, package installation, and regular expressions.

7. Wicked Cool Shell Scripts, 2nd Edition: 101 Scripts for Linux, OS X, and UNIX Systems

Author: by Dave Taylor
Published at: No Starch Press; 2nd edition (October 15, 2016)
ISBN: 978-1593276027

View on Amazon

Shell scripts are an efficient way to interact with your machine and manage your files and system operations. With just a few lines of code, your computer will do exactly what you want it to do. But you can also use shell scripts for many other essential (and not-so-essential) tasks.

This second edition of Wicked Cool Shell Scripts offers a collection of useful, customizable, and fun shell scripts for solving common problems and personalizing your computing environment. Each chapter contains ready-to-use scripts and explanations of how they work, why you’d want to use them, and suggestions for changing and expanding them.

You’ll find a mix of classic favorites, like a disk backup utility that keeps your files safe when your system crashes, a password manager, a weather tracker, and several games, as well as 23 brand-new scripts, including: ZIP code lookup tool that reports the city and state Bitcoin address information retriever suite of tools for working with cloud services like Dropbox and iCloud for renaming and applying commands to files in bulk processing and editing toolsWhether you want to save time managing your system or just find new ways to goof off, these scripts are wicked cool!

8. Practical Guide to Linux Commands, Editors, and Shell Programming, A

Author: by Mark Sobell
Published at: Addison-Wesley Professional; 4th edition (November 9, 2017)
ISBN: 978-0134774602

View on Amazon

Linux continues to evolve. Today, it’s the world’s dominant Internet server platform. Google runs on Linux. So does Amazon – including its market-leading EC2 cloud-based platform. It’s no wonder more and more system administrators and web developers need to be fluent in Linux.

But fluency means knowing how to operate a Linux system from the command line, not from a pre-programmed GUI: that’s the only way to gain full control. Through three previous editions, Mark Sobell’s A Practical Guide to Linux Commands, Editors, and Shell Programming has earned a global reputation as the best way to gain this mastery.

Now, Sobell and top Linux expert Matthew Helmke have thoroughly updated this best-seller to reflect Linux’s latest innovations. Like all previous editions, A Practical Guide to Linux Commands, Editors, and Shell Programming, Fourth Edition is fully distribution agnostic: it will serve you just as well, whether you work with Ubuntu, Fedora, Red Hat, or any other distribution.

9. Classic Shell Scripting

Author: by Arnold Robbins
Published at: O'Reilly Media; 1st edition (February 1, 2005)
ISBN: 978-0596005955

View on Amazon

Shell scripting skills never go out of style. It’s the shell that unlocks the real potential of Unix. Shell scripting is essential for Unix users and system administrators-a way to quickly harness and customize the full power of any Unix system.

With shell scripts, you can combine the fundamental Unix text and file processing commands to crunch data and automate repetitive tasks. But beneath this simple promise lies a treacherous ocean of variations in Unix commands and standards. Classic Shell Scripting is written to help you reliably navigate these tricky waters.

Writing shell scripts requires more than just a knowledge of the shell language, it also requires familiarity with the individual Unix programs: why each one is there, how to use them by themselves, and in combination with the other programs.

The authors are intimately familiar with the tips and tricks that can be used to create excellent scripts, as well as the traps that can make your best effort a bad shell script. With Classic Shell Scripting you’ll avoid hours of wasted effort.

10. SSH, The Secure Shell: The Definitive Guide: The Definitive Guide

Author: by Daniel J. Barrett
Published at: O'Reilly Media; Second edition (May 31, 2005)
ISBN: 978-0596008956

View on Amazon

Are you serious about network security? Then check out SSH, the Secure Shell, which provides key-based authentication and transparent encryption for your network connections. It’s reliable, robust, and reasonably easy to use, and both free and commercial implementations are widely available for most operating systems.

While it doesn’t solve every privacy and security problem, SSH eliminates several of them very effectively. Everything you want to know about SSH is in our second edition of SSH, The Secure Shell: The Definitive Guide. This updated book thoroughly covers the latest SSH-2 protocol for system administrators and end users interested in using this increasingly popular TCP/IP-based solution.How does it work?

Whenever data is sent to the network, SSH automatically encrypts it. When data reaches its intended recipient, SSH decrypts it. The result is “transparent” encryption-users can work normally, unaware that their communications are already encrypted. SSH supports secure file transfer between computers, secure remote logins, and a unique “tunneling” capability that adds encryption to otherwise insecure network applications.

11. Linux Administration: A Beginner's Guide, Eighth Edition

Author: by Wale Soyinka
Published at: McGraw-Hill Education; 8th edition (April 10, 2020)
ISBN: 978-1260441703

View on Amazon

Publisher’s Note: Products purchased from Third Party sellers are not guaranteed by the publisher for quality, authenticity, or access to any online entitlements included with the product. Gain Essential Linux Administration Skills EasilyEffectively set up and manage popular Linux distributions on individual servers and build entire network infrastructures using this practical resource.

Fully updated to cover the latest tools and techniques, Linux Administration: A Beginner’s Guide, Eighth Edition features clear explanations, step-by-step instructions, and real-world examples. Find out how to configure hardware and software, work from the command line or GUI, maintain Internet and network services, and secure your data.

Performance tuning, virtualization, containers, software management, security, and backup solutions are covered in detail. Install and configure Linux, including the latest distributions from Fedora, Ubuntu, CentOS, openSUSE, Debian, and RHEL. Set up and administer core system services, daemons, users, and groups.

12. Unix Power Tools, Third Edition

Author: by Shelley Powers
Published at: O'Reilly Media; 3rd edition (October 1, 2002)
ISBN: 978-0596003302

View on Amazon

With the growing popularity of Linux and the advent of Darwin, Unix has metamorphosed into something new and exciting. No longer perceived as a difficult operating system, more and more users are discovering the advantages of Unix for the first time.

But whether you are a newcomer or a Unix power user, you’ll find yourself thumbing through the goldmine of information in the new edition of Unix Power Tools to add to your store of knowledge. Want to try something new?

Check this book first, and you’re sure to find a tip or trick that will prevent you from learning things the hard way. The latest edition of this best-selling favorite is loaded with advice about almost every aspect of Unix, covering all the new technologies that users need to know.

In addition to vital information on Linux, Darwin, and BSD, Unix Power Tools 3rd Edition now offers more coverage of bash, zsh, and other new shells, along with discussions about modern utilities and applications. Several sections focus on security and Internet access.

13. bash Cookbook: Solutions and Examples for bash Users

Author: by Carl Albing Ph. D.
Published at: O'Reilly Media; 2nd edition (November 14, 2017)
ISBN: 978-1491975336

View on Amazon

For system administrators, programmers, and end users, shell command or carefully crafted shell script can save you time and effort, or facilitate consistency and repeatability for a variety of common tasks. This cookbook provides more than 300 practical recipes for using bash, the popular Unix shell that enables you to harness and customize the power of any Unix or Linux system.

Ideal for new and experienced users alikeincluding proficient Windows users and sysadminsthis updated second edition helps you solve a wide range of problems. You’ll learn ways to handle input/output, file manipulation, program execution, administrative tasks, and many other challenges.

Each recipe includes one or more scripting examples and a discussion of why the solution works. You’ll find recipes for problems including:Standard output and input, and executing commandsShell variables, shell logic, and arithmeticIntermediate shell tools and advanced scriptingSearching for files with find, locate, and slocateWorking with dates and timesCreating shell scripts for various end-user tasksWorking with tasks that require parsingWriting secure shell scriptsConfiguring and customizing bash

14. The Linux Command Line: A Complete Introduction

Author: by William E. Shotts Jr.
Published at: No Starch Press, Incorporated; 1st edition (January 17, 2012)
ISBN: 978-1593273897

View on Amazon

You’ve experienced the shiny, point-and-click surface of your Linux computernow dive below and explore its depths with the power of the command line. The Linux Command Line takes you from your very first terminal keystrokes to writing full programs in Bash, the most popular Linux shell.

Along the way you’ll learn the timeless skills handed down by generations of gray-bearded, mouse-shunning gurus: file navigation, environment configuration, command chaining, pattern matching with regular expressions, and more. In addition to that practical knowledge, author William Shotts reveals the philosophy behind these tools and the rich heritage that your desktop Linux machine has inherited from Unix supercomputers of yore.

As you make your way through the book’s short, easily-digestible chapters, you’ll learn how to: Create and delete files, directories, and symlinks Administer your system, including networking, package installation, and process management Use standard input and output, redirection, and pipelines Edit files with Vi, the world’s most popular text editor Write shell scripts to automate common or boring tasks Slice and dice text files with cut, paste, grep, patch, and sed Once you overcome your initial “shell shock,” you’ll find that the command line is a natural and expressive way to communicate with your computer.

15. Learning Unix for OS X: Going Deep With the Terminal and Shell

Author: by Dave Taylor
Published at: O'Reilly Media; 2nd edition (February 23, 2016)
ISBN: 978-1491939987

View on Amazon

Think your Mac is powerful now? This practical guide shows you how to get much more from your system by tapping into Unix, the robust operating system concealed beneath OS X’s beautiful user interface. OS X puts more than a thousand Unix commands at your fingertipsfor finding and managing files, remotely accessing your Mac from other computers, and using freely downloadable open source applications.

If you’re an experienced Mac user, this updated edition teaches you all the basic commands you need to get started with Unix. You’ll soon learn how to gain real control over your system. Get your Mac to do exactly what you want, when you wantMake changes to your Mac’s filesystem and directoriesUse Unix’s find, locate, and grep commands to locate files containing specific informationCreate unique “super commands” to perform tasks that you specifyRun multiple Unix programs and processes at the same timeAccess remote servers and interact with remote filesystemsInstall the X Window system and learn the best X11 applicationsTake advantage of command-line features that let you shorten repetitive tasks