Bash Shell Scripting Tutorial for Beginners
4.6 (515 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
8,171 students enrolled

Bash Shell Scripting Tutorial for Beginners

Learn Bash Shell Scripting to automate the frequently performed tasks
Highest Rated
4.6 (515 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
8,171 students enrolled
Created by Yogesh Patel
Last updated 6/2018
English
English [Auto-generated]
Current price: $69.99 Original price: $99.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 10 hours on-demand video
  • 18 articles
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
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.
Course content
Expand all 87 lectures 10:02:05
+ Linux Command Line Tutorial
41 lectures 05:41:11
cd command in Linux
11:26
cat command in Linux
09:14
I/O Redirection
08:50
mkdir Command
06:14
rm and rmdir commands for linux
12:29
cp command
11:52
mv command
11:33
less command
07:14
touch command
05:03
nano command
06:53
sudo command
08:05
top command
08:04
kill command
08:47
echo command
07:50
file permissions, symbolic permissions and chmod
12:27
directory permissions and chmod
07:16
Octal and Numerical permissions (chmod)
09:33
Introduction to Bash Scripting
09:54
which and whatis command
05:17
useradd command (Creating Users)
07:02
userdel command (Removing Users)
05:00
Basic Group Management (groups, groupadd, groupdel)
06:34
.bashrc File
07:13
Viewing Resources (du , df, free command)
09:51
watch command
03:42
Head and Tail Commands
06:49
find command
07:14
wc command
04:20
cal command
03:49
date command
05:54
How to Run multiple Terminal Commands
09:15
apt-get command to Install Software
12:28
ifconfig command
08:29
tar command to Compress and Extract Files
05:54
grep command
10:50
netstat command
12:33
How to Enable SSH in Ubuntu 16.04 LTS (Install openssh-server)
05:04
How to Install PuTTY on Windows + SSH Connections Using PuTTY on Windows
05:44
scp command - SCP to Securely Transfer Files/Folders in Linux
10:14
+ Bash Shell Scripting Tutorial
46 lectures 04:20:54
Bash Introduction
11:45
using Variables and Comments
10:16
using Variables and Comments Example
00:13
Read User Input
11:30
Read User Input Example
00:25
Pass Arguments to a Bash-Script
08:34
Pass Arguments to a Bash-Script Example
00:26
If Statement ( If then , If then else, If elif else) Example
01:39
File test operators
10:29
File test operators Example
00:07
How to append output to the end of text file
10:46
How to append output to the end of text file Example
00:14
Logical 'AND' Operator
06:34
Logical 'AND' Operator Example
00:19
Logical 'OR' Operator
05:45
Logical 'OR' Operator Example
00:19
Perform arithmetic operations
07:20
Perform arithmetic operations Example
00:10
Floating point math operations in bash | bc Command
12:21
Floating point math operations in bash | bc Command Example
00:09
The case statement
07:51
The case statement Example 1
00:11
The case statement Example
08:38
The case statement Example 2
00:32
Array variables
10:29
Array variables Example
00:06
WHILE Loops
06:20
WHILE Loops Example
00:24
using sleep and open terminal with WHILE Loops
04:55
using sleep and open terminal with WHILE Loops Example
00:05
UNTIL loop
04:21
UNTIL loop Example
00:23
FOR loop
08:39
FOR loop Example
00:26
use FOR loop to execute commands
06:45
FOR loop to execute commands Example
00:16
Select loop
07:01
Break and continue
06:42
Functions
09:42
Local variables
08:43
Function Example
11:57
Readonly command
07:17
Signals and Traps
21:44
How to debug a bash script
07:22
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.