AIX Tip of the Week

AIX Tip of the Week: Recording a Terminal Session Using the script Commnd

Audience: AIX Administrators and End Users

Date: January 14, 2000

The script command records everything displayed on a terminal session. This command has several practical uses, including:

  1. Debugging: Capture a user's sesson
  2. Programming: Creating shell scripts
  3. Documenting: Create examples for documentation.
  4. Security Checking: Session logging for recording user activity

The session output is saved in a text file. The "script" command is typically run from the command line, but can be placed in a startup profile. The session logging is terminated with an exit or "-d".