Normally shells are interactive. It means shell accept command from you
(via keyboard) and execute them. But if you use command one by one
(sequence of 'n' number of commands) , the you can store this sequence
of command to text file and tell the shell to execute this text file
instead of entering the commands. This is know as shell script.