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

Text processing is a way of using computer software to manipulate the meaning of text by changing its character or adding content that is not otherwise present. Filters are modifications that work on a document before it’s displayed in order to change the appearance, layout, or meaning of the document.

Text filter in Linux

Redirection Operators

Pattern matching in vi Editor

Pattern searching using grep

45min.

Chapter 4 : Working with Commands

The linux commands are designed to be easy to use and remember. This makes them ideal for scripting purposes.

Shell interpretation of commands

Command substitution

Command separators

Logical operators & Pipes

45min.

Chapter 5 : Exploring Expressions and Variables

Variables are a way in which expressions can be represented in a mathematical or logical format. Variables have both a value and a name, which helps to refer to them when writing equations and mathematical statements.

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

Shell scripting is a powerful tool to use in any system administration. It can be used to automate nearly any task.

Interactive shell scripts

<< operator

<<< operator

File handling

Debugging

45min.

Chapter 7 : Performing Arithmetic Operations

Arithmetic operations are essential for performing calculations in computer programming. It is used to store, retrieve, update, or delete data.

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

Automating decision-making in programming can help developers make better use of their time. This is because they can do more in less time when they don’t have to think about the complexity.

Exit status of commands

test command

Conditional constructs – if else

Switching case

Menus with select

45min.

Chapter 9 : Automating Repetitive Tasks

Automating repetitive tasks in programming is a way to reduce the cost of development and testing by providing a simpler workflow.

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 12 : System Startup and Customizing

A system startup is an initialization process of a system. It can also be used to start a new project or program that needs to be customized.

System startup, inittab, and run levels

User initialization scripts

45min.

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

Pattern matching and regular expression are two terms that are often combined. Though these two computational techniques may seem similar, they serve different purposes in computer programming.

The basics of regular expressions

sed – non-interactive stream editor

Using awk

45min.

Chapter 14 : Backup and Embedding Other Languages

Backup and Embedding Other Languages involves the ability to read and write a language that is not your first or native language.

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.