Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Don't use shell history for this. Use accounting or sudo (and log sudo commands). Commented Jul 7, 2015 at 6:06
  • How to use accounting or sudo for history capture in a file Commented Jul 15, 2015 at 11:07
  • sudo can be configured to capture its history (and even tty output) into a file (or via syslog). What do you mean by "accounting"? Commented Jul 23, 2015 at 16:33
  • @SunLynx, see How can you log every command typed Commented Jul 28, 2015 at 22:18