Bash Scripting Solutions

Bash Scripting Solutions

English | MP4 | AVC 1920×1080 | AAC 44KHz 2ch | 3h 36m | 621 MB

Automate tedious repetitive tasks, manage your system efficiency, and become an effective seasoned Bash user

In Linux, one of the most commonly used and most powerful tools is the Bash shell. With its collection of engaging recipes, Bash solutions takes you through a series of exercises designed to teach you how to effectively use the Bash shell in order to create and execute your own scripts. The course starts by introducing you to the basics of using the Bash shell, and teaching you the fundamentals of generating any input from a command. With the help of a number of exercises, you will get to grips with automating daily tasks for sysadmins and power users. Once you have a hands-on understanding of the subject, you will move on to exploring more advanced projects that can solve real-world problems comprehensively on a Linux system. In addition to this, you will discover projects such as creating an application with a menu, beginning scripts on startup, parsing and displaying human-readable information, and executing remote commands with authentication using self-generated Secure Shell (SSH) keys. By the end of this course, you will have gained significant experience in solving real-world problems, from automating routine tasks to managing your systems and creating your own scripts.

This video course introduces several key concepts of the Bash scripting language that you will need to master to begin writing functional scripts. Starting with input/output and string manipulation, the course moves progressively toward writing an application or daemon, using scripts for system/user tasks, and finally creating several unique mini-projects. Filled with best practices and tricks, this course provides you with everything possible to save you time and help you get things done easily on any Linux system.

What You Will Learn

  • Understand the basics of Bash shell scripting on a Linux system
  • Acquire a working knowledge of how redirections and pipes interact
  • Retrieve and parse input or output for any command
  • Automate tasks such as data collection and creating and applying a patch
  • Create a script that acts like a program with different features
  • Customize your Bash shell and discover neat tricks to extend your programs
  • Compile and install shell and log commands on your system’s console using Syslog
Table of Contents

01 The Course Overview
02 Getting Started with Bash and CLI Fundamentals
03 Creating and Using Basic Variables
04 Hidden Bash Variables and Reserved Words
05 Conditional Logic Using if, else, and elseif
06 Case_Switch Statements and Loop Constructs
07 Using Functions and Parameters
08 Including Source Files
09 Retrieving Return codes and Output
10 Getting Program Input Parameters
11 Getting Additional Information about Commands
12 Striping_Altering _Sorting _Deleting_ Searching Strings with Bash Only
13 Using SED and AWK to Remove_Replace Substrings
14 Formatting Your Data_Output Using Echo and Printf
15 Readying Your Script for Different Languages with Internationalization
16 Calculating Statistics and Reducing Duplicates Based on File Contents
17 Using File Attributes With Conditional Logic
18 Reading Delimited Data and Altered Output Format
19 Viewing Files from Various Angles – Head, Tail, Less, and More
20 Creating a Diff of Two Files and Patching
21 Creating Symbolic Links and Using Them Effectively
22 Crawling Filesystem Directories and Printing a Tree
23 Finding and Deleting Duplicate Files or Directories
24 Joining and Splitting Files at Arbitrary Positions
25 Running a Program Continuously (Forever) Using Looping Constructs or Recursion
26 Keeping Programs_Scripts Running After Logoff
27 Invoking Commands When They Require Permissions
28 Sanitizing User Input and for Repeatable Results
29 Making a Simple Multi-Level User Menu Using Select
30 Generating and Trapping Signals for Cleanup
31 Using Temporary Files and Lock Files in Your Program
32 Leveraging Timeout When Waiting for Command Completion
33 Creating a File-in-File-Out Program and Running Processes in Parallel
34 Executing Your Script on Startup
35 Gathering and Aggregating System Information
36 Gathering Network Information and Connectivity Diagnostics
37 Compressing and Archiving Files
38 Rotating Files from RAM to Storage for Log Rotation
39 Using Linux IPtables for a Firewall
40 Accessing SQL Databases Remotely or Locally
41 Creating and Configuring Cron Jobs for Task Scheduling
42 Creating Syslog Entries and Generating an Alarm
43 Backing Up and Erasing Media, Disks, and Partitions with DD
44 Creating Graphics and Presentations on the CLI
45 Browsing the Web from the CLI
46 Finding Binary Dependencies
47 Fetching Time from Different Locations
48 Encrypting_Decrypting Files from a Script
49 Creating a lame utility HTTP server
50 Parsing RSS Feeds and Output HTML
51 Scraping the Web and Collecting Files
52 Making a Simple IRC Chat Bot Logger
53 Blocking IP Addresses from Failed SSH Attempts
54 Playing and Managing Audio from Bash
55 Creating a Simple NAT and DMZ Firewall
56 Parsing a GitHub Project and Generate a Report
57 Using Bash Scripts to Monitor udev Input
58 Using Bash to Monitor Battery Life and Optimize It
59 Using chroot and Restricted Bash Shells to Secure Scripts
60 Calculating and Reducing the Runtime of a Script
61 Writing One-Line Conditional Statements and Loops
62 Avoiding Command Not Found Warnings_Errors and Improving Portability
63 Creating a Config File and Using It in Tandem with Your Scripts
64 Improving Your Shell – GCC and Command Line Colors
65 Adding Aliases and Altering User Paths_Variables
66 Echoing Output to Raw Terminal Devices
67 Creating Simple Frontend GUIs for Bash Scripts
68 Compiling and Installing Your Own Bash Shell
69 Recording Terminal Sessions for Automation
70 Writing High-Quality Scripts by Example