Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'd like to redirect all input and output to a file, so I can keep a record of a given 'command session'.

I know that I can redirect a single command with:

command > file.txt

, or use the TEE command. I don't want that. I want ALL input and output written to file, regardless of what other redirection is in place (and perhaps even in addition to other redirection).

Is there a way to do this?

share|improve this question
No, not in batch. You should use tee. –  Endoro Apr 26 '13 at 12:55
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.