The script command is a Unix utility that records a terminal session. It dates back to the 1979 3.0 BSD. == Usage == A script session is captured in file name typescript by default; to specify a different filename follow the script command with a space and the filename as such: script recorded_session.