Script command is used to record an interactive session.
It is initiated with script command. The default file is typescript and after recorded session we can view the contents of typescript file with the help of more, less, head, tail and cat command.