Automatically append another piped command to issued command in bash
I am stucked at the point, I want to append | tee -a file.txt for every command that is issued from bash, How to acomplish it ? do any body knows, ?
if ls command is issued by the user
the bash should append | tee -a file.txt to that command issued
it then completes as ls | tee -a file.txt