4,165 questions
4,378 answers
5,729 comments
This is really a question about Linux rather than MultiChain, but here's what you need to do:
multichain-cli chain1 listwallettransactions > file.txt
That will put the output of the listwallettransactions API command into a file called file.txt.