In this article we are discussing about how to generate a recorder for Linux command line practice. It will be useful to save your command line activities which you have done, for your future reference. We know 'history' command also do the same, but the difference is, we can see the o of the commands too.
We use the command 'script'. The usage of this command is very simple. The working of this command is, we can save our activities to a test file which can be easily accessible from the command line itself.
Syntax
script <output_file_path>
Run the following command on the server to begin logging your SSH session activity.
# script /tmp/record.txt
From now onwards, your current shell will be recorded to the output file /tmp/record.txt
You can now execute the commands within your SSH session, and all activities will be recorded in the specified file. For example:
#hostname
#cat /proc/loadavg
#dateTo exit and stop logging your SSH terminal commands, simply type
exitor pressCtrl + D. The output of this command will also be saved in the log file.Run the following command to view the data recorded during your session.
# cat /tmp/record.txt
Congratulations! You’ve successfully recorded your Linux terminal session.
If you have any questions, please don’t hesitate to contact our team via live chat.
For technical inquiries, please feel free to reach our support team by emailing support@bigscoots.com from your registered email or by submitting a support ticket.




