Skip to Content
Linux Command Line and Shell Scripting Techniques
book

Linux Command Line and Shell Scripting Techniques

by Vedran Dakic, Jasmin Redzepagic
March 2022
Beginner to intermediate
552 pages
11h 26m
English
Packt Publishing
Content preview from Linux Command Line and Shell Scripting Techniques

Chapter 16: Shell Script Examples for Server Management, Network Configuration, and Backups

Now that we've covered everything that we wanted to cover in terms of various concepts and structures in Bash shell scripting, let's dig into some examples. This will allow us to put these last few chapters to good use as shell scripts are the most commonly used tools in system engineers' daily jobs. Due to this, we are going to go through some shell scripts to emphasize the point of scripting – to make our lives a lot easier.

In this chapter, we're going to cover the following recipes:

  • Creating a file and folder inventory
  • Checking if you're running as root
  • Displaying server stats
  • Finding files by name, ownership, or content type and copying them to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Linux Shell Scripting - Second Edition

Mastering Linux Shell Scripting - Second Edition

Mokhtar Ebrahim, Andrew Mallett
Linux Shell Scripting Cookbook - Third Edition

Linux Shell Scripting Cookbook - Third Edition

Clif Flynt, Sarath Lakshman, Shantanu Tushar

Publisher Resources

ISBN: 9781800205192