Learn Linux Shell Scripting – Fundamentals of Bash 4.4 - Sebastiaan Tammer

Learn Linux Shell Scripting – Fundamentals of Bash 4.4

A comprehensive guide to automating administrative tasks with the Bash shell
Buch | Softcover
452 Seiten
2018
Packt Publishing Limited (Verlag)
978-1-78899-559-7 (ISBN)
38,65 inkl. MwSt
Shell scripting is one of the most common and powerful ways to automate tasks in a Linux / Unix environment. With the help of real-world exercises, you will learn to leave the GUI behind, automate tasks, and unlock the true power of Bash.
Create and maintain powerful Bash scripts for automation and administration.

Key Features

Get up and running with Linux shell scripting using real-world examples
Leverage command-line techniques and methodologies to automate common yet complex administration tasks
A practical guide with exposure to scripting constructs and common scripting patterns

Book DescriptionShell scripts allow us to program commands in chains and have the system execute them as a scripted event, just like batch files. This book will start with an overview of Linux and Bash shell scripting, and then quickly deep dive into helping you set up your local environment, before introducing you to tools that are used to write shell scripts. The next set of chapters will focus on helping you understand Linux under the hood and what Bash provides the user. Soon, you will have embarked on your journey along the command line. You will now begin writing actual scripts instead of commands, and will be introduced to practical applications for scripts. The final set of chapters will deep dive into the more advanced topics in shell scripting. These advanced topics will take you from simple scripts to reusable, valuable programs that exist in the real world. The final chapter will leave you with some handy tips and tricks and, as regards the most frequently used commands, a cheat sheet containing the most interesting flags and options will also be provided.

After completing this book, you should feel confident about starting your own shell scripting projects, no matter how simple or complex the task previously seemed. We aim to teach you how to script and what to consider, to complement the clear-cut patterns that you can use in your daily scripting challenges.

What you will learn

Understand Linux and Bash basics as well as shell scripting fundamentals
Learn to write simple shell scripts that interact with Linux operating system
Build, maintain, and deploy scripts in a Linux environment
Learn best practices for writing shell scripts
Avoid common pitfalls associated with Bash scripting
Gain experience and the right toolset to write your own complex shell scripts

Who this book is forThis book targets new and existing Linux system administrators, Windows system administrators or developers who are interested in automating administrative tasks. No prior shell scripting experience is needed but in case you do this book will make a pro quickly. Readers should have a basic understanding of the command line.

Sebastiaan Tammer is a Linux enthusiast from the Netherlands. After attaining his BSc in information sciences, he graduated with an MSc in business informatics, both from Utrecht University. His professional career started in Java development, before he pivoted into a Linux opportunity. Because of this dual background, he feels most at home in a DevOps environment. Besides working extensively with technologies such as Puppet, Chef, Docker, and Kubernetes, he has also attained the RHCE and OSCP certificates. He spends a lot of time in and around Bash. Whether it is creating complex scripting solutions or just automating simple tasks, there is hardly anything he hasn't done with Bash!

Table of Contents

Introduction
Setting up your local environment
Choosing the right tools
The Linux filesystem
Understanding the Linux permissions scheme
File manipulation
Hello World!
Variables and user input
Error checking and handling
Regular expressions
Conditional testing and scripting loops
Using pipes and redirection in scripts
Functions
Scheduling and logging
Parsing Bash script arguments with getopts
Bash parameter substitution and expansion
Tips & tricks (with cheat sheet)

Erscheinungsdatum
Verlagsort Birmingham
Sprache englisch
Maße 75 x 93 mm
Themenwelt Informatik Betriebssysteme / Server Unix / Linux
Mathematik / Informatik Informatik Netzwerke
ISBN-10 1-78899-559-7 / 1788995597
ISBN-13 978-1-78899-559-7 / 9781788995597
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich
Die wichtigen Befehle

von Daniel J. Barrett

Buch | Softcover (2024)
O'Reilly (Verlag)
16,90
das umfassende Handbuch

von Dirk Deimeke; Daniel van Soest; Stefan Kania

Buch | Hardcover (2023)
Rheinwerk (Verlag)
69,90
das umfassende Handbuch

von Michael Kofler

Buch | Hardcover (2023)
Rheinwerk (Verlag)
49,90