Learn Linux Shell Scripting – Fundamentals of Bash 4.4
eBook - ePub

Learn Linux Shell Scripting – Fundamentals of Bash 4.4

A comprehensive guide to automating administrative tasks with the Bash shell

  1. 452 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Learn Linux Shell Scripting – Fundamentals of Bash 4.4

A comprehensive guide to automating administrative tasks with the Bash shell

Book details
Table of contents
Citations

About This Book

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 Description

Shell 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 for

This 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.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Learn Linux Shell Scripting – Fundamentals of Bash 4.4 by Sebastiaan Tammer in PDF and/or ePUB format, as well as other popular books in Computer Science & System Administration. We have over one million books available in our catalogue for you to explore.

Information

Year
2018
ISBN
9781788990240
Edition
1

Table of contents

  1. Title Page
  2. Copyright and Credits
  3. About Packt
  4. Contributors
  5. Preface
  6. Introduction
  7. Setting Up Your Local Environment
  8. Choosing the Right Tools
  9. The Linux Filesystem
  10. Understanding the Linux Permissions Scheme
  11. File Manipulation
  12. Hello World!
  13. Variables and User Input
  14. Error Checking and Handling
  15. Regular Expressions
  16. Conditional Testing and Scripting Loops
  17. Using Pipes and Redirection in Scripts
  18. Functions
  19. Scheduling and Logging
  20. Parsing Bash Script Arguments with getopts
  21. Bash Parameter Substitution and Expansion
  22. Tips and Tricks with Cheat Sheet
  23. Assessments
  24. Other Books You May Enjoy