Bash Shell Scripting Tutorial For Beginners

Learn Bash Shell Scripting to automate the frequently performed tasks

Last updated 2022-01-10 | 4.7

- By the end of it you will be familiar with most of the common tasks we normally do on Bash scripting
- You will be comfortable
- efficient
- and effective at the shell scripting
- Automate the frequently performed tasks.

What you'll learn

By the end of it you will be familiar with most of the common tasks we normally do on Bash scripting
You will be comfortable
efficient
and effective at the shell scripting
Automate the frequently performed tasks.

* Requirements

* Some knowledge of the terminal commands would be helpful
* but not required.
* Linux machine / Linux virtual machine.

Description

Linux has a variety of different shells Like Bourne shell (sh), C shell (csh), Korn shell (ksh), TC shell (tcsh), Bourne Again shell (bash). Certainly the most popular shell is “bash”. Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh).  bash is not only an excellent command line shell, but a scripting language in itself. Shell scripting allows us to use the shell's abilities and to automate a lot of tasks that would otherwise require a lot of commands.

Bash scripting will help you automate routine tasks and save valuable time, whether you're a sys admin, Linux user or software developer. Shell script is much quicker than programming in any other languages.

The goal of this course is to provide you with a working knowledge of Bash scripting. We'll start with the basics, starting from creating our first Bash script and running it. Next you will learn about the bash environment, local variables, conditional statements, functions, loops, case statements, string operations, and coprocesses.


Who this course is for:

  • This course is designed for beginners, especially users who have never written bash script before
  • People thinking about a career as a Linux system administrator or engineer, but need the basics first.

Course content

2 sections • 87 lectures

Introduction Preview 07:57

ls command in Linux Preview 17:14

cd command in Linux Preview 11:26

cat command in Linux Preview 09:14

I/O Redirection Preview 08:50

mkdir Command Preview 06:14

rm and rmdir commands for linux Preview 12:29

cp command Preview 11:52

mv command Preview 11:33

less command Preview 07:14

touch command Preview 05:03

nano command Preview 06:53

sudo command Preview 08:05

top command Preview 08:04

kill command Preview 08:47

echo command Preview 07:50

file permissions, symbolic permissions and chmod Preview 12:27

directory permissions and chmod Preview 07:16

Octal and Numerical permissions (chmod) Preview 09:33

Introduction to Bash Scripting Preview 09:54

which and whatis command Preview 05:17

useradd command (Creating Users) Preview 07:02

userdel command (Removing Users) Preview 05:00

Basic Group Management (groups, groupadd, groupdel) Preview 06:34

.bashrc File Preview 07:13

Viewing Resources (du , df, free command) Preview 09:51

watch command Preview 03:42

Head and Tail Commands Preview 06:49

find command Preview 07:14

wc command Preview 04:20

cal command Preview 03:49

date command Preview 05:54

How to Run multiple Terminal Commands Preview 09:15

apt-get command to Install Software Preview 12:28

ifconfig command Preview 08:29

tar command to Compress and Extract Files Preview 05:54

grep command Preview 10:50

netstat command Preview 12:33

How to Enable SSH in Ubuntu 16.04 LTS (Install openssh-server) Preview 05:04

How to Install PuTTY on Windows + SSH Connections Using PuTTY on Windows Preview 05:44

scp command - SCP to Securely Transfer Files/Folders in Linux Preview 10:14

Bash Introduction Preview 11:45

using Variables and Comments Preview 10:16

using Variables and Comments Example Preview 00:13

Read User Input Preview 11:30

Read User Input Example Preview 00:25

Pass Arguments to a Bash-Script Preview 08:34

Pass Arguments to a Bash-Script Example Preview 00:26

If Statement ( If then , If then else, If elif else) Preview 13:17

If Statement ( If then , If then else, If elif else) Example Preview 01:39

File test operators Preview 10:29

File test operators Example Preview 00:07

How to append output to the end of text file Preview 10:46

How to append output to the end of text file Example Preview 00:14

Logical 'AND' Operator Preview 06:34

Logical 'AND' Operator Example Preview 00:19

Logical 'OR' Operator Preview 05:45

Logical 'OR' Operator Example Preview 00:19

Perform arithmetic operations Preview 07:20

Perform arithmetic operations Example Preview 00:10

Floating point math operations in bash | bc Command Preview 12:21

Floating point math operations in bash | bc Command Example Preview 00:09

The case statement Preview 07:51

The case statement Example 1 Preview 00:11

The case statement Example Preview 08:38

The case statement Example 2 Preview 00:32

Array variables Preview 10:29

Array variables Example Preview 00:06

WHILE Loops Preview 06:20

WHILE Loops Example Preview 00:24

using sleep and open terminal with WHILE Loops Preview 04:55

using sleep and open terminal with WHILE Loops Example Preview 00:05

Read a file content in Bash Preview 07:20

UNTIL loop Preview 04:21

UNTIL loop Example Preview 00:23

FOR loop Preview 08:39

FOR loop Example Preview 00:26

use FOR loop to execute commands Preview 06:45

FOR loop to execute commands Example Preview 00:16

Select loop Preview 07:01

Break and continue Preview 06:42

Functions Preview 09:42

Local variables Preview 08:43

Function Example Preview 11:57

Readonly command Preview 07:17

Signals and Traps Preview 21:44

How to debug a bash script Preview 07:22