4,157 questions
4,370 answers
5,718 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.