Script makes a typescript of everything printed on your terminal. It is useful for students who need a hardcopy record of an interactive session as proof of an assignment, as the typescript file can be printed out later with lpr.
If the argument file is given, script saves all dialogue in file. If no file name is given, the typescript is saved in the file typescript.
Script command Syntax
script [?a] [file]
?a -- Append the output to file or typescript, retaining the priorcontents.
If you want to start recording you need to type the following command from your terminal
You should see similar to the following output if you don't menction any file location
Script started, file is typescript
From now it will record all the command line activity.When you're finished recording whatever it is that you want to record, type [Ctrl]-d or exit, and your script session will end.
Output when you end your session as follows
Script done, file is typescript
Incoming search terms:
- ubuntu script command
- what is script command with command explain how to create script file of a session
- What is script command with command explain how to create script file of a session?
- Script started file is typescript
- typescript linux
- script command ubuntu
- linux typescript
- script command in ubuntu
- 4 What is script command with command explain how to create script file of a session