A shell script is a text file containing a command sequence for a UNIX-based operating system. A shell script is so named because it combines a series of commands that would otherwise have to be typed into the keyboard one at a time into a single script.