BASH/LINUX Script 8hours

Create and maintain powerful Bash scripts for automation and administration.

Chapter 1 : Getting Started with Shell Scripting

If you work with Linux, you will come across the shell. The shell is a program that provides the user with direct interaction with the operating system.

Fndamental of Linux Shell

Basic Linux Commands

First Linux Shell Script – Hello World

45min.

Chapter 2 : Process Management, Job Control, Automation

You also learned about process management and job control. This information will be very useful for system administrators in automation and in terms of solving many problems.

Linux Process Management

Linux Process Monitoring Tools

Linux Automation [at, cron]

45min.

Chapter 3 : Using Text Processing and Filters

Duis egestas aliquet aliquet. Maecenas erat eros, fringilla et leo eget, viverra pretium nulla. Quisque sed augue tincidunt, posuere dui tempor, dapibus nisi. Donec vel lectus sapien.

Text filter in Linux

Redirection Operators

Pattern matching in vi Editor

Pattern searching using grep

45min.

Chapter 4 : Working with Commands

Duis egestas aliquet aliquet. Maecenas erat eros, fringilla et leo eget, viverra pretium nulla. Quisque sed augue tincidunt, posuere dui tempor, dapibus nisi. Donec vel lectus sapien.

Shell interpretation of commands

Command substitution

Command separators

Logical operators & Pipes

45min.

Chapter 5 : Exploring Expressions and Variables

Duis egestas aliquet aliquet. Maecenas erat eros, fringilla et leo eget, viverra pretium nulla. Quisque sed augue tincidunt, posuere dui tempor, dapibus nisi. Donec vel lectus sapien.

Understanding Variables

Environment Variables

Read-Only Variables

Command-line arguments

Understanding getopts

Understanding default parameters

Working with arrays

45min.

Chapter 6 : Tricks with Shell Scripting

Duis egestas aliquet aliquet. Maecenas erat eros, fringilla et leo eget, viverra pretium nulla. Quisque sed augue tincidunt, posuere dui tempor, dapibus nisi. Donec vel lectus sapien.

Interactive shell scripts

<< operator

<<< operator

File handling

Debugging

45min.

Chapter 7 : Performing Arithmetic Operations

Duis egestas aliquet aliquet. Maecenas erat eros, fringilla et leo eget, viverra pretium nulla. Quisque sed augue tincidunt, posuere dui tempor, dapibus nisi. Donec vel lectus sapien.

Using a declare command for arithmetic

Using the let command for arithmetic

Using the expr command for arithmetic

Binary, octal, and hex arithmetic operations

Floating-point arithmetic

45min.

Chapter 8 : Automating Decision-Making

Duis egestas aliquet aliquet. Maecenas erat eros, fringilla et leo eget, viverra pretium nulla. Quisque sed augue tincidunt, posuere dui tempor, dapibus nisi. Donec vel lectus sapien.

Exit status of commands

test command

Conditional constructs – if else

Switching case

Menus with select

45min.

Chapter 9 : Automating Repetitive Tasks

Duis egestas aliquet aliquet. Maecenas erat eros, fringilla et leo eget, viverra pretium nulla. Quisque sed augue tincidunt, posuere dui tempor, dapibus nisi. Donec vel lectus sapien.

Looping with the for

Loop with a continue

Loop with a break

do – while loop

Using until

Loop with Pipes and execute loop in background

IFS and loops

45min.

Chapter 10 : Working with Functions

Duis egestas aliquet aliquet. Maecenas erat eros, fringilla et leo eget, viverra pretium nulla. Quisque sed augue tincidunt, posuere dui tempor, dapibus nisi. Donec vel lectus sapien.

Understanding functions

Passing arguments or parameters to functions

Sharing the data with many functions

Declaring local variables in functions

Returning information from functions

Running functions in the background

Creating a library of functions

45min.

Chapter 11 : Advanced Functionality in Scripts

Duis egestas aliquet aliquet. Maecenas erat eros, fringilla et leo eget, viverra pretium nulla. Quisque sed augue tincidunt, posuere dui tempor, dapibus nisi. Donec vel lectus sapien.

Understanding signals and traps

Using the trap command

Ignoring signals

Using traps inside a function

Running scripts or processes even if the user logs out

Creating dialog boxes with the dialog utility

45min.

Chapter 12 : System Startup and Customizing

Duis egestas aliquet aliquet. Maecenas erat eros, fringilla et leo eget, viverra pretium nulla. Quisque sed augue tincidunt, posuere dui tempor, dapibus nisi. Donec vel lectus sapien.

System startup, inittab, and run levels

User initialization scripts

45min.

Chapter 13 : Pattern Matching and Regular Exp. (sed and awk)

Duis egestas aliquet aliquet. Maecenas erat eros, fringilla et leo eget, viverra pretium nulla. Quisque sed augue tincidunt, posuere dui tempor, dapibus nisi. Donec vel lectus sapien.

The basics of regular expressions

sed – non-interactive stream editor

Using awk

45min.

Chapter 14 : Backup and Embedding Other Languages

Duis egestas aliquet aliquet. Maecenas erat eros, fringilla et leo eget, viverra pretium nulla. Quisque sed augue tincidunt, posuere dui tempor, dapibus nisi. Donec vel lectus sapien.

Backup of files

Embedding other language codes or scripts

45min.

Satish Kumar

Kumar Satish

Instructor

Kumar Satish started his career as a Unix and Linux System Engineer in 2011. Kumar has professiona experience with CentOS, RedHat, Ubuntu, and Debian. He enjoys teaching others how to use and exploit the power of the Linux operating system.