save log unix

Hi! If you're new here, you may want to subscribe to the Unix Tutorial RSS feed to get regular tips & tricks for all flavors of Unix. Thanks for visiting!

There are many ways to save a log of your Unix shell session.

script command

script is a standard Unix command which takes a log file as a parameter, and returns you the shell prompt after you run it. This means than any commands you type after this will be logged into the specified file. When you type exit, your session log will be finalized and all the commands you type from then on will be no longer be logged.

See also:

Please share: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • BlinkList
  • Fark
  • Furl
  • kick.ie
  • Netscape
  • Reddit
  • StumbleUpon
  • Technorati
  • YahooMyWeb