When reading script files, the primary function of a UNIX or LINUX shell is that it acts as an interpreter. By definition, a script are a series of texts containing commands that are compressed in a file, while on the other hand, a shell is the one that would read those texts and execute the commands.