Skip to main content
edited title
Link
darksky
  • 1k
  • 5
  • 3

Output of relevant commands spoiler / expander

edited title
Link
Tim
  • 33.3k
  • 17
  • 31

Request for a new feature: output Output of relevant commands spoiler / expander

Tweeted twitter.com/#!/AskUbuntu/status/608692132526870528
Source Link
darksky
  • 1k
  • 5
  • 3

Request for a new feature: output of relevant commands

There are many instances when the community requests the asker to run certain commands and post the output. They usually ask them to edit their answer and just dump the output of the requested commands.

This method works well when the command produces a one line output. But what if it's something like dmesg or lshw. Often, the output of a command is quite long. This makes the question quite unaesthetic, and sometimes even unreadable.

One way to avoid having the command outputs take up the whole page is to add an expandable item. Something like a text that says

▶ Output of dmesg

that when clicked, expands and shows the output in a box with scroll bars.

Of course, if this becomes a feature, the site can suggest running relevant commands based on question tags right when the question is being created. That way more time can be saved.