I am currently preparing for a pentesting project. My question is: Is there a way to log all interactions within a terminal in a file (e.g. for later examination). This is not about the typical redirection with > or >> or tee command.
I want for example log into a mysql shell from a bash terminal and record every input and output during the interaction into a file. Opening this file at the end of the process should show me every step within the bash shell, every inserted command in the mysql shell and every printed output of bash and mysql.
Any idea how this could be done?