| script |
| Linux Commands - Administrative Commands |
script
This command will save each character from a terminal session to a specified file. If you do not specify a file it will save it to typescript. Option -a file this will append keystrokes to an existing filename If you would want to record your interaction with the shell you could use this command. Start a script by using the command and a file which will record all of the terminal session information. script test.rtf Script started on Sun 21 Aug 2005 06:31:39 AM MDT ---cut--- 8 ./.gconf/desktop/gnome/url-handlers/https 8 ./.gconf/desktop/gnome/url-handlers/http 44 ./.gconf/desktop/gnome/url-handlers 8 ./.gconf/desktop/gnome/background 120 ./.gconf/desktop/gnome 124 ./.gconf/desktop ---cut--- exit Script done on Sun 21 Aug 2005 06:31:57 AM MDT This example demonstrates the process. The script will record the command and the output as well. To stop the script type exit. |