© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
D. BothUsing and Administering Linux: Volume 2https://doi.org/10.1007/978-1-4842-9615-8_29

29. Automation with Bash Scripts

David Both1  
(1)
Raleigh, NC, USA
 

Objectives

In this chapter you will learn
  • The advantages of automation with Bash shell scripts

  • Why using shell scripts is a better choice for SysAdmins than compiled languages like C or C++

  • To create a set of requirements for new scripts

  • To create simple Bash shell scripts from CLI programs

  • To use the file ownership and permissions to impose a layer of security on who can run the script

  • To further enhance security through the use of the UID of the user running the script

  • To use logical comparison ...

Get Using and Administering Linux: Volume 2: Zero to SysAdmin: Advanced Topics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.