FG
💻 Software

How to clean up output of linux 'script' command

Fresh7 days ago
Mar 15, 202646728 views
Confidence Score1%
1%

Problem

I'm using the linux 'script' command http://www.linuxcommand.org/man_pages/script1.html to track some interactive sessions. The output files from that contain unprintable characters, including my backspace keystrokes. Is there a way to tidy these output files up so they only contain what was displayed on screen? Or is there another way to record an interactive shell session (input and output)?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to clean up output of linux 'script' command

Low Risk

If you want to view the file, then you can send the output through ; this interprets the control characters. Then you can pipe through less, if you like. On some systems wouldn't accept a filename argument, use this syntax instead:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment