Mastering Bash
This is the code repository for Mastering Bash, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.
About the Book
System administration is an everyday effort that involves a lot of tedious tasks, and devious pits. Knowing your environment is the key to unleashing the most powerful solution that will make your life easy as an administrator, and show you the path to new heights. Bash is your Swiss army knife to set up your working or home environment as you want, when you want.
Instructions and Navigation
All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.
The code will look like the following:
#!/bin/bash
set -x
echo "The total disk allocation for this system is: "
echo -e "\n"
df -h
echo -e "\n"
set +x
df -h | grep /dm-0 | awk '{print "Space left on root partition: " $4}'
This book assumes a good level of experience with Linux operating systems and an intermediate knowledge of the Bash shell, and since there will be some chapters dealing with Nagios monitoring and Slack messaging, basic understanding of networking concepts is required. A simple Linux installation is required with really low specifications, as even the Nagios plugin can be tested without requiring the actual installation of the monitoring system. So, this is the minimum configuration required: CPU: single-core Memory: 2 GB Disk space: 20 GB For this book, you will need the following software: Linux operating system: Debian 8 Nagios Core 3.5.1 OpenSSH 6.7p1 rssh 2.3.4 Internet connectivity is required to install the necessary service packages and to try out some of the examples.
Related Products
Suggestions and Feedback
Click here if you have any feedback or suggestions.