Jump to ratings and reviews
Rate this book

Learn Linux Shell Scripting – Fundamentals of Bash 4.4: A comprehensive guide to automating administrative tasks with the Bash shell

Rate this book
Create and maintain powerful Bash scripts for automation and administration.

Key FeaturesGet up and running with Linux shell scripting using real-world examplesLeverage command-line techniques and methodologies to automate common yet complex administration tasksA practical guide with exposure to scripting constructs and common scripting patternsBook 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 learnUnderstand Linux and Bash basics as well as shell scripting fundamentalsLearn to write simple shell scripts that interact with Linux operating systemBuild, maintain, and deploy scripts in a Linux environmentLearn best practices for writing shell scriptsAvoid common pitfalls associated with Bash scriptingGain experience and the right toolset to write your own complex shell scriptsWho 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.

Table of ContentsIntroductionSetting up your local environmentChoosing the right toolsThe Linux filesystemUnderstanding the Linux permissions schemeFile manipulationHello World!Variables and user inputError checking and handlingRegular expressionsConditional testing and scripting loopsUsing pipes and redirection in scriptsFunctionsScheduling and loggingParsing Bash script arguments with getoptsBash parameter substitution and expansionTips & tricks (with cheat sheet)

799 pages, Kindle Edition

Published December 31, 2018

1 person is currently reading
3 people want to read

About the author

Sebastiaan Tammer

1 book1 follower

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
1 (25%)
4 stars
3 (75%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 of 1 review
Profile Image for PRJ Greenwell.
738 reviews13 followers
February 7, 2022
This is an excellent step-by-step guide to Bash shell scripting, and on that basis alone, you can't ask for more. From hello world, right through to automated tasks and advanced regular expressions. But...why is the first two-fifths of this book dedicated to explaining what Linux is, how to install it on a virtual drive, how to install Atom and Notepad++ etc? Maybe it's just me, but if you're getting around to learning shell scripting, wouldn't you already be at this preliminary stage to begin with? To me, it's unneeded introductory material that could've been taken up by more example scripting examples.
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.