How to Log terminal commands and outputs in Ubuntu

This post was written by admin on December 10, 2009
Posted Under: General

Use the two command:

cat /dev/vcs1 >screenshot
script screen.log

this will start record what you input and what it outputs in the first opened terminal window.
If you have opened several terminal windows you can change the number 1 to 2 or 3 which means the second terminal window or the third terminal window.

When you type:

exit

this stops record,and you can see the file “screen.log” for what you did.

Related posts:

  1. CLIcompanion-Run and Store terminal commands from a GUI
  2. MobaXterm – enhanced terminal X server and Unix commands for Windows
  3. Change Gnome-terminal default startup size in Ubuntu
  4. List of commands determine system info/resources/partitions/process in Ubuntu Linux
  5. Change network card MAC Address on Ubuntu

    Reader Comments

    Add a Comment

    required, use real name
    required, will not be published
    optional, your blog address