Linux Bash Shell Scripting Through Real Life Examples

Shell Scripting and Programming for Daily Tedious Tasks Automation

Last updated 2022-01-10 | 4.5

- Students will be able to understand shell scripting concepts
- Students will be able to write basic to advance level shell scripts
- Students will understand how shell scripts become useful to automate daily system administration tasks

What you'll learn

Students will be able to understand shell scripting concepts
Students will be able to write basic to advance level shell scripts
Students will understand how shell scripts become useful to automate daily system administration tasks
How to accept input from a user and then make decisions on that input

* Requirements

* Desire to learn shell scripting
* Linux machine either running on a physical or virtual machine
* Linux file editing skills
* Familiarity with Linux command line

Description

This course is design for those who have some experience in Linux and want to learn or refine their Linux shell scripting skills.  Most of the scripts practiced in this training are based on real life examples.

For the hobbyists this is fun to do, for the aspiring Linux system admins these are essential skills and for the experienced Linux engineers these are skills to be consolidated


In this training we will cover the following:


  • Section 1 – (Lab Setup)

    ·         What is Virtual Box?

    ·         Downloading and installing Virtual Box

    ·         Creating first virtual machine

    ·         Linux installation

     

    Section: 2 – (Shell Scripting Basics)

    ·         What is Kernel?

    ·         What is a Shell?

    ·         Shell Scripting?

    ·         Type of Shells

    ·         Starting a Shell

    ·         How to Run a Shell Script

     

    Section: 3 – (Scripting Standards)

    ·         Naming Convention

    ·         Script File Permissions

    ·         Shell Script Format

    ·         Sequence of Script Execution

     

    Section: 4 – (Basic Shell Scripts)

    ·         Creating 1st script

    ·         Script to run basic tasks

    ·         Defining variable

    ·         Input/output script

    ·         Conditions/If else statement scripts

    ·         Case statement scripts

    ·         For loop scripts

    ·         Do-while scripts

    ·         Exist Status

    ·         Handouts

     

    Section: 5 – (Real Life Scripts)

    ·         Accessing data from files

    ·         Check remote servers connectivity

    ·         Script for scheduling and notification

    ·         Script to delete old files

    ·         Backup filesystem

    ·         For loops scripts for file system – 1

    ·         For loops scripts for file system – 2

    ·         Copy files to remote hosts

    ·         User directory assignment

    ·         List of users logged in by date

    ·         Central logging (rsyslog) script

    ·         Script for user account management

    ·         Disable inactive users

    ·         Check process status and killing it

    ·         Status on total number of files

    ·         Script to create system inventory

    ·         Getting online help

    ·         Homework

  • Additional Resources

    ·         This section has so many additional Linux related lectures


=============================================================================================


Here is the testimonial from my students:

  • To all of you that are looking for a REALLY GOOD LINUX course, THIS IS IT, SERIOUSLY I promise you won't find a course on LINUX here that is THIS GOOD. -- T.J. Marstiller (Udemy Student)


  • Imran is a very knowledgeable and engaging instructor. As others have said, you can tell that he is not just trying to sell a course, but that he is invested in giving his students a strong career foundation with a positive and approachable attitude. He is also entertaining with his use of pop culture and practical work examples. It really feels like you're in a classroom with him. I'm taking this course mainly as a hobbyist, but got a lot from it already. The homework assignments, quizzes, and handouts help reinforce the material.   -- Raymond B.  (Udemy Student)


  • Main thing about course is its simplicity and the hierarchy. Design is very good and easy which helps to understand things better.  -- Akash Garg (Udemy Student)


  • I just love the teaching ad the learning experience I am getting  -- Jacob Samba (Udemy Student)


  • Imran Afzal might be my favorite teacher I've EVER had. He is funny, and engaging. The course was easy to follow, and with no experience starting I am now extremely comfortable with Linux, and actually really like it. He does make you do your googles, but this is not a bad thing especially considering the nature of IT and documentation to solve your own problems. I highly recommend.  -- Vanessa Diaz-Goumond (Udemy Student)


  • The course is run very well and I really like the handouts and the homework that is assigned. The homework helps me learn and continue with the learning process even when adult life is still progressing forward.  -- Thomas Rogers (Udemy Student)


  • Such an amazing instructor. Imran must have put in a lot of effort in structuring the course and taking the student step by step, he takes his time in explaining everything, from what Linux is, how to down load it, coding, etc. I have taken other courses from Imran. I am a student for life. Keep it up and please keep preparing more courses for please like us who can benefit from your way of teaching, knowledge and experience. Thank you.  -- Ali Shiekh (Udemy Student)


  • In the first place I say a big thank you to the instructor for making such a great course. I was afraid to learn Linux. I now feel very comfortable with Linux. I have understood both the concept behind and the practical as well. I would recommend every one who is NEW to Linux and wants to grab it once and for all without wasting time to go ahead and ENROLL. You will not regret it. I would like the instructor to do same for WINDOWS SERVER ADMIN., I don't seem to find any better and beginner oriented course out there that could be matched with this course. To me, it is the BEST Linux Course on Online. I just started some real world projects with Linux after this great course, I was new to Linux and in just a month I am on the command line always playing.  -- Opoku Bright (Udemy Student)


  • I genuinely look forward to additional courses in the future. This has been so informative. You hear the name oracle all the time, but this was well put in layman’s terms  -- Atoofa Hasan (Classroom Student)


  • Imran Afzal eats, breathes and sleeps Linux! He really knows his stuff. I feel like he has brought me from a novice level education to masters level in a short time period. Anyone who is looking to get a job in Linux should definitely take this course.  -- TJ Walker (Udemy Student)

Who this course is for:

  • Anyone who has a good knowledge of Linux or Unix and wants to learn shell scripting
  • Anyone who wants to level up his or her career in Linux field
  • Anyone who wants to improve Linux skills
  • Administrators who are looking to automate their regular tedious tasks

Course content

8 sections • 86 lectures

Welcome to Lab Setup Preview 03:19

What is Virtual Box? Preview 01:52

Installing Oracle Virtual Box Preview 06:05

Creating First Virtual Machine Preview 05:33

Linux CentOS 7 Installation (Recommended) Preview 25:05

Linux CentOS8 Installation (Optional) Preview 24:33

Welcome to Shell Scripting Basics Preview 01:51

What is Kernel? Preview 02:25

What is a Shell? Preview 03:07

What is Shell Scripting Preview 02:45

Types of Shells Preview 06:46

Starting a Shell Preview 05:22

How to Run a Shell Script Preview 05:30

Welcome to Scripting Standards Preview 02:04

Scripts Naming Convention Preview 04:52

Script File Permissions Preview 04:35

Shell Script Format Preview 09:54

Sequence of Script Execution Preview 01:36

Welcome to Basic Shell Scripting Preview 03:37

Create your first script - Hello World Preview 09:51

Run Basic Tasks - Script Preview 09:43

Run Basic Administration Tasks Preview 09:47

Defining Variables Preview 07:48

Input/Output Script Preview 14:22

Conditions/If else statements Scripts Preview 08:38

Case Statements Script Preview 07:04

For loop Script Preview 07:43

do-while Scripts Preview 05:40

Exit Status Preview 08:45

Handouts Preview 00:00

Welcome to Real Life Scripting Preview 01:01

Accessing data from a file Preview 20:58

Check Remote Servers Connectivity (ping) Preview 24:29

Script Scheduling and Notification Preview 08:20

Script to Delete Old Files Preview 10:51

Backup Filesystem Preview 17:20

For loops Scripts for File System - 1 Preview 24:51

For loops Scripts for File System - 2 Preview 10:04

Copy Files to Remote Hosts Preview 05:22

User Directory Assignment Preview 09:11

List of Users Logged in by Date Preview 15:27

Script for Central Logging (rsyslog) Preview 23:55

Script for User Account Management Preview 24:29

Disable Inactive Users Preview 15:02

Check Process Status and Killing it Preview 09:10

Disk Space Status Preview 27:24

Status on Total Number of Files Preview 08:37

Create System Inventory Preview 32:57

Scripts with Pre-Defined Information Preview 11:25

Getting Online Help Preview 13:05

Congratulations Preview 00:09

Homework Preview 00:01

Welcome to Additional Resources Preview 00:09

Troubleshoot Putty Connectivity Issues Preview 11:41

Important Things to Remember in Linux Preview 01:01

Linux File Types Preview 01:27

Wild Cards Preview 10:01

Soft Links and Hard Links Preview 12:16

File Ownership Commands Preview 11:35

TAB Completion and Up Arrow Keys Preview 06:27

Combing and Splitting Files Preview 06:46

Linux File Editor (vi) Preview 14:32

"sed" Command Preview 21:00

System Utility Commands Preview 08:45

System Logs Monitor Preview 11:08

Terminal Commands Preview 06:18

Aliases Preview 09:39

NIC Bonding Preview 17:42

File Transfer Commands Preview 10:25

What is RAID Preview 04:45

Facts About IT Preview 04:32

Difference Between CentOS/Redhat 5, 6 and 7 Preview 14:45

Securing Linux Machine (OS Hardening) Preview 24:26

SELinux Preview 35:35

NFS Install and Configuration Preview 36:45

Linux System Performance Issues Preview 33:54

What is Virtualization? Preview 13:03

Introduction to VMWare Preview 08:12

Handouts Preview 00:00

Welcome to Bonus Section Preview 00:09

Bonus Lecture Preview 03:38