• Post category:StudyBullet-12
  • Reading time:11 mins read


Complete Linux Shell Scripting Tutorial with Practical Exercises and Examples.

What you will learn

Students will be able to understand the basic concepts of shell scripting, including how to write and execute the scripts.

Students will be able to change files and directories, process text, and do basic system tasks by using common shell commands.

Student will be able to use shell scripts to talk to other programs and services, like web servers and databases.

Student will be able to understand the differences between different shell environments and how to choose the appropriate shell for a given task.

Description

This course will be beneficial for anyone who is interested in automating tasks or creating simple programs on a Linux operating system. Some examples of people who might benefit from learning shell scripting include: System administrators will be able to automate system maintenance tasks, such as backups and server updates. Data scientists will be able to learn about pre-process and organize data sets, or to automate data analysis pipelines. Web developers will be able to use to automate the deployment of web applications or to set up a local development environment. DevOps professionals will be able to use to automate the build, test, and deployment processes of software projects.

In this course we will cover the following:

Section 1:  Course Overview

  • Course Overview

Section 2: Lab Setup

  • Installation of Virtual Box
  • Download & Installation of Linux(CentOS) on VirtualBox Step by Step
  • Download, Install and connect through putty

Section 3: Shell Scripting Standards


Get Instant Notification of New Courses on our Telegram channel.


  • The Shell
  • What is Shell Scripting?
  • Naming Convention for Shell Script
  • Shell Scripting Format
  • File Permissions in Linux
  • How to Run a Shell Script
  • Basic Commands used in Shell Scripting
  • Listing files and understanding LS output
  • Text Editor vi Introduction
  • Quiz

Section 4: Shell Scripting Basic Concepts

  • Creating first script – Hello World
  • Defining variable
  • Arithmetic Expressions in Shell Scripting
  • String Manipulation in Shell Scripting
  • String Comparisons in Shell Scripting
  • Read and Echo (Input/Output) statements
  • Relational Operators in Shell Scripting
  • Conditional Statements (Decision Making)
  • Case Statement
  • For loop in Shell Scripting
  • Do-while in Shell Scripting
  • Until Loop in Shell Scripting
  • Select Loop in Shell Scripting
  • Infinite Loops, and Sleeping
  • Exit Status in Shell Scripting
  • Special Variables in Shell Scripting
  • Quiz

Section 5: Working with Functions, Arrays and String

  • Functions in Shell Scripting
  • Passing Parameters to a Function
  • Nested Functions
  • Indexed array in Shell Scripting
  • Associative array in shell Scripting
  • String Concatenation
  • Extract a substring from a string
  • Nested Loop in Shell Scripting
  • Nested Conditions in Shell Scripting
  • Shifting in Shell Scripting
  • Quiz

Section 6: Real Life Scripting

  • Searching and Extracting Data from Files
  • Shell script to delete oldest files and folders
  • Shell Script to Backup Files in Directory
  • How to use Loops in a file system?
  • Check Users Logged In, Ordered by Date, or IP Address
  • How to trace log messages in a shell script?
  • How to automate user account creation?
  • How to check users not logged in?
  • How to track the process’s status and terminate it?
  • How to add and delete data from Inventory?
  • How to reuse one script information to another?
  • How to check the status and connectivity of remote hosts?
  • How to schedule script through cron job?
  • How to check disk space status?
  • How to create and verify created files?
  • How to create script on run time?
  • Store data on live server database
  • Get data from live database server
  • Quiz

Section 7: Additional Content

  • The Linux Directory Structure
  • Absolute vs relative path of a directory
  • Creating files and directories by command line
  • Changing File Permissions
  • Modify File Ownership for user and group
  • Copying Directories and Files
  • Removing Directories and Files
  • head and tail commands
  • Wild Cards
  • Grep
  • Pipe
  • Shell Aliases
  • Compressing and archiving files (using tar, gzip)
  • Explanation of Tab Key Completion
  • Find your IP address in linux
  • User and group administration by command
  • Ping command
  • Handouts
English
language

Content

Course Overview

Course Overview

Lab Setup

Installation of VirtualBox
Download & Installation of Linux(CentOS) on VirtualBox Step by Step
Download, Install and connect through putty

Shell Scripting Standards

The Shell
What is Shell Scripting
Naming Convention for Shell Script
Shell Scripting Format
File Permissions in Linux
How to Run a Shell Script
Basic Commands used in Shell Scripting
Listing files and understanding LS output
TextEditor vi Introduction
Quiz

Shell Scripting Basic Concepts

Creating 1st script – Hello World
Defining Variable
Arithmetic Expressions in Shell Scripting
String Manipulation in Shell Scripting
String Comparisons in Shell Scripting
Read and Echo (Input/Output) statements
Relational Operators in Shell Scripting
Conditional Statements (Decision Making)
Case Statement
For loop in Shell Scripting
Do-while in Shell Scripting
The until Loop in Shell Scripting
Select Loop in Shell Scripting
Infinite Loops and Sleeping
Exit Status in Shell Scripting
Special Variables in Shell Scripting
Quiz

Working with Functions, Arrays, String and Nested Concept

Functions in Shell Scripting
Passing Parameters to a Function
Nested Functions
Indexed Array in Shell Scripting
Associative Arrays in Shell Scripting
String Concatenation
Extract a substring from a string
Nested Loop in Shell Scripting
Nested Conditions in Shell Scripting
Shifting in Shell Scripting
Quiz

Real Life Scripting

Searching and Extracting Data From Files
Shell script to delete oldest files and folders
Shell Script to Backup Files in Directory
How to use Loops in a filesystem
Check Users Logged In, Ordered by Date, or IP Address
How to trace log messages in a shell script
How to automate user account creation
How to check users not logged in
How to track the process’s status and terminate it
How to add and delete data from Inventory
How to reuse one script information to another
How to check the status and connectivity of remote hosts
How to schedule script through cron job
How to check disk space status
How to create and verify created files
How to create script on run time
Store data on live server database
Get data from live database server
Quiz

Additional Content

The Linux Directory Structure
Absolute vs relative path of a directory
Creating files and directories by command line
Changing File Permissions
Modify File Ownership for user and group
Copying directories and files
Removing directories and files
Head and tail commands
Wild Cards
Grep
Pipe
Shell Aliases
Compressing and archiving files (using tar, gzip)
Explanation of Tab Key Completion
Find your IP address in linux
User and group administration by command
Ping command
Hand Outs