© David Both 2020
D. BothUsing and Administering Linux: Volume 2https://doi.org/10.1007/978-1-4842-5455-4_10

10. 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 tools to provide execution flow control for both command-line programs and scripts

  • To use ...

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.