I'm trying to redirect output from the terminal to a file (or variable) so I can then paste the content to a GUI program. Like so:
$ echo "Text to be pasted" >> /path/to/file
And then paste with Ctrl+V in a browser.
Which file or variable is that in a Linux system?