Learn Linux Shell Scripting – Fundamentals of Bash 4.4

0
(0)

Learn Linux Shell Scripting – Fundamentals of Bash 4.4
 

  • Author:Sebastiaan Tammer
  • Length: 452 pages
  • Edition: 1
  • Publisher: Packt Publishing
  • Publication Date: 2018-12-31
  • ISBN-10: 1788995597
  • ISBN-13: 9781788995597
  • Sales Rank: #3055451 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    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.

    Table of Contents

    1. Introduction
    2. Setting up your local environment
    3. Choosing the right tools
    4. The Linux filesystem
    5. Understanding the Linux permissions scheme
    6. File manipulation
    7. Hello World!
    8. Variables and user input
    9. Error checking and handling
    10. Regular expressions
    11. Conditional testing and scripting loops
    12. Using pipes and redirection in scripts
    13. Functions
    14. Scheduling and logging
    15. Parsing Bash script arguments with getopts
    16. Bash parameter substitution and expansion
    17. Tips & tricks (with cheat sheet)

    中文:

    书名:Learn Linux Shell Scripting – Fundamentals of Bash 4.4

    创建和维护功能强大的Bash脚本以实现自动化和管理。

    Key Features

    • 使用真实示例启动并运行Linux外壳脚本
    • 利用命令行技术和方法自动执行常见但复杂的管理任务
    • 介绍脚本构造和常见脚本模式的实用指南

    图书描述

    外壳脚本允许我们以链的形式编写命令,并让系统将它们作为脚本事件执行,就像批处理文件一样。本书将从概述Linux和Bash Shell脚本开始,然后快速深入地帮助您设置本地环境,然后向您介绍用于编写Shell脚本的工具。下一章将集中于帮助您深入了解Linux以及Bash为用户提供了什么。很快,您就可以开始使用命令行了。您现在将开始编写实际的脚本而不是命令,并将介绍脚本的实际应用程序。最后一组章节将深入探讨更高级的Shell脚本编写主题。这些高级主题将带您从简单的脚本到现实世界中存在的可重用、有价值的程序。最后一章将给你一些方便的提示和技巧,关于最常用的命令,还将提供包含最有趣的标志和选项的小抄。

    读完这本书后,无论以前的任务看起来多么简单或复杂,您都应该对开始自己的Shell脚本项目充满信心。我们的目标是教您如何编写脚本以及要考虑什么,以补充您可以在日常脚本挑战中使用的清晰模式。

    你将学到什么

    • 了解Linux和Bash基础知识以及外壳脚本基础知识
    • 学习编写与Linux操作系统交互的简单外壳脚本
    • 在Linux环境中构建、维护和部署脚本
    • 了解编写外壳脚本的最佳实践
    • 避免与Bash脚本相关的常见陷阱
    • 获得经验和合适的工具集来编写您自己的复杂外壳脚本

    Who this book is for

    本书面向对自动化管理任务感兴趣的新的和现有的Linux系统管理员、Windows系统管理员或开发人员。不需要以前的Shell脚本编写经验,但如果您有经验,这本书将很快成为专业人士。读者应该对命令行有基本的了解。

    目录表

    1. Introduction
    2. Setting up your local environment
    3. 选择正确的工具
    4. Linux文件系统
    5. 了解Linux权限方案
    6. 文件操作
    7. Hello World!
    8. 变量和用户输入
    9. 错误检查和处理
    10. 正则表达式
    11. Conditional testing and scripting loops
    12. Using pipes and redirection in scripts
    13. Functions
    14. 计划和日志记录
    15. 使用getopts解析Bash脚本参数
    16. Bash parameter substitution and expansion
    17. Tips & tricks (with cheat sheet)
  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册