How To Record Everything You Do In Terminal

6 Responses

  1. Alastair Montgomery says:

    You could setup an alias with would timestamp your recorded sessions.

    alias rec=’script -aq ~/term.log-$(date “+%Y%m%d-%H-%M”)’

  2. cmcanulty says:

    is there a way to have it always saved to a certain location, say for example/home/user/documents/my scripts?

  3. SK says:

    Yes, just use “script -a /home/user/documents/myscripts”. All commands will be stored in the specified file.

  4. Chris McGimpsey-Jones says:

    This is excellent. I’ve been searching for something just like this.

  5. mehdi says:

    thanks, this was very useful.
    I wanna record my new users and when I add this to /etc/skel/.bashrc and when I adduser and try to login, it generates like 100 sessions.
    even with my previous users, make 100 sessions.
    I wonder if you guys could help me with this.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.