Hi I want to save both output of a command and the command that has been run to create the output into the same single file. I understand either of
*some_command* > file.txt
*some_command* | tee file.txt
can be done but either case the some_command doesn't get saved into the file but only the output of it gets saved. Is there a way to do so ?