1

I plan on configuring an Ubuntu Server via the CLI. Is there any program that can capture my commands (and perhaps responses)? Just trying to make documentation more efficient.

Thank you.

0

1 Answer 1

2

The utility script will make a typescript of a terminal session. To start it:

script

Then, run your commands. When done, run:

exit

All your commands and the responses will now be in a file called typescript.

If any of your commands produce color output, then the typescript file will contain the ANSI sequences used. You can display the color results with:

less -r typescript

Not the answer you're looking for? Browse other questions tagged .