How To Record Everything You Do In Terminal - OSTechNix
Focus On Content ~/ click me to toggle the navigation bar to the right
<img src="/img/2017/03/record-everything-you-do-in-terminal.png" alt="">
Synopsis:
script -a my_history
mkdir test
cd test
touch hello_world.txt
echo 'Hello World' > ./hello_world.txt
# This closes the "script -a my_history" file
exit
Source: How To Record Everything You Do In Terminal - OSTechNix