So now let's talk about what is a shell script.
So put all your instruction in a shell or in a container and just run it.
So if I have to explain it through a diagram let's put it this way.
This is a shell right.
Like actual a shell.
So you actually putting all those things to all those instructions like Do this do that or else do that
etc. everything you're putting that together in a shell and then telling shell run this set of instructions.
And of course run them in a sequence by default the shell runs all the instructions in sequence.
Now if you notice you go to Windows and you wanted to copy a file from one folder to another you right
click to would or control see to it and then you go to another window and then you paste it.
Now how does it work how does Windows knows that I have been given instructions to copy and paste it.
Because when you right click it gives you the option to copy and when you go to enter the window it
gives you the instruction to paste.
That is the function of a shell.
The shell is a copy of instructions to copy a shell an instruction to paste.
So just like that any of the commands or any of those functions that you run in Windows they are all
created within a shell within commands.
You don't see those commands.
In fact if you wanted to really run in Windows you you could just go to open up the DOS prompt and you
could actually run those commands that copy command to copy files from another.
But of course Windows Microsoft had made your life a lot easier to run all those commands to graphical
interface.
Just click click click.
Now in Linux you don't have that luxury and that's why also Linux is different because it's not gooey
based kind of operating system.
It's a command line so you can run your function a lot faster.
So you don't have to deal with gooey and gooey using up UCB memory.
So what do you do you run a copy command or you run move command or all those commands that you run
those are what are those doors are actually the scripts.
Those are shell script and who have written those the developers those people who have done development
those people who do C++ or C development they create those scripts so you can use those scripts leverage
on those scripts and create your own shellscript.
So that's how the shellscript thing works.