I'm pretty new here, and I have been reading over many of the questions here, trying to answer the few I have a small bit of knowledge about. While perusing the questions, answers, and comments, I have noticed that often a person is requested to perform a few commands and post the output. While this usually helps get the question answered, it seems that some of the less experienced users may have problems cutting and pasting the output properly, or needing to pull the outputs of different commands into a single text file, etc.
One of the tools that most of us should have on our system that can make this easier is the script
command. I think that it might be advantageous when wanting to ask a user to perform a series of commands, in order to troubleshoot the problem by reading the output, to ask the user to type script -c "cmd1;cmd2;cmd3" output-for-pastebin.txt
, or something similar. This allows the user to have full and complete output, in the order desired, and also in a single text file that would be much easier to edit for removing sensitive information before posting.