What is kernel ?
The kernel is a computer program at the core of a computer's operating system and generally has complete control over everything in the system .
What is shell ?
The shell is the Linux command line interpreter. It provides an interface between the user and the kernel and executes programs called commands.
What is shell scripting ?
A shell script is a text file that contains a sequence of commands for a Unix based OS .It combines a sequence of commands, that would otherwise have to be typed into the keyboard one at a time, into a single script .
What is #!/bin/bash ?
This first line (#!/bin/bash or #!/bin/sh) is known as shabang also called as sh-bang, hashbang .It tells your terminal that when you run the script it should use bash to execute it .
#!/bin/sh : Executes the script using the Bourne shell .
#!/bin/bash : Executes the script using the Bourne Again shell.