I need to copy the very long output of lncli listpayments to either a file - or simply copy it from the terminal window after running the command. But the generated output is trunkated and incomplete, and I cannot figure out how to write the output to a file. If I try creating a file with “lncli listpayments > payments.json” I get “permission denied” from the terminal in the Lightning node app.
Can someone help this linux noob get the complete output of her lncli listpayments command written to a file?