1
00:00:00,000 --> 00:00:09,000
Okay, let's try to understand bash shell scripting.

2
00:00:09,000 --> 00:00:15,000
A shell script can be as simple as a number of commands that is sequentially executed.

3
00:00:15,000 --> 00:00:18,000
Don't forget where a shell script is coming from.

4
00:00:18,000 --> 00:00:24,000
It's related to the shell, and the shell is a common command interpreter on Linux.

5
00:00:24,000 --> 00:00:27,000
Bash is the de facto standard shell, and for that reason,

6
00:00:27,000 --> 00:00:34,000
a bash shell script can be as simple as listing a number of commands in an automated way.

7
00:00:34,000 --> 00:00:40,000
Shell scripts often work with variables, and that makes them react differently in different environments.

8
00:00:40,000 --> 00:00:45,000
And that allows you to pick up site-specific information from your shell script.

9
00:00:45,000 --> 00:00:54,000
And to make your shell script a bit more complex, conditional statements such as for and if and case and while can be used.

10
00:00:54,000 --> 00:00:57,000
Shell scripts are common as they are easy to learn and implement.

11
00:00:57,000 --> 00:01:02,000
Also, a shell will always be available to interpret code from shell scripts.

12
00:01:02,000 --> 00:01:06,000
Even in the most minimal Linux distribution that you will ever work with,

13
00:01:06,000 --> 00:01:12,000
there will always be a bin.sh, which is the old-born compatible shell.

14
00:01:12,000 --> 00:01:14,000
So you can always run a shell script.

15
00:01:14,000 --> 00:01:21,000
And if the scripts are using internal commands only, which are commands that are a part of the bash shell,

16
00:01:21,000 --> 00:01:25,000
then they are fast as nothing needs to be loaded from disk.

17
00:01:25,000 --> 00:01:29,000
And there is no need to compile anything in a shell script.

18
00:01:29,000 --> 00:01:35,000
Also, there are no modules to be used in the bash script, which makes them rather static.

19
00:01:35,000 --> 00:01:38,000
And bash shell scripts are not idempotent.

20
00:01:38,000 --> 00:01:42,000
And for that reason, there will always be a place for shell scripts on Linux,

21
00:01:42,000 --> 00:01:45,000
and that is why you need to learn shell scripts.

22
00:01:46,000 --> 00:01:52,000
But there is also a need for more advanced languages such as Python, for instance.

23
00:01:52,000 --> 00:01:58,000
In the next couple of videos, you are going to learn about the basics of setting up an efficient shell script.

24
00:01:58,000 --> 00:02:05,000
The purpose here is to get you started, not to get in-depth and discuss all the different options that are available,

25
00:02:05,000 --> 00:02:08,000
because even bash shell scripts can be quite advanced.

