This question already has an answer here:
Whenever I was to store something to show someone here, I run
command-with-output | pastebinit.
That returns the link to the paste online. For example:
echo sometext | pastebinit
gave me the link
Which I can share. How can I do this with a file - for example a log file. Surely I don't have to
open - > copy all - > open paste.ubuntu.com -> paste it?