I would like to post part or all of a Terminal result (i.e. Sudo apt get update). How does one capture some or all of the data in the Terminal and paste it into Ask Ubuntu? Also, if there is a way, will it have the same appearance as the Terminal text (font, line returns etc)?
Asked
Active
Viewed 347 times
1 Answers
2
If you are not using English, it will help us understand the output, if you set the language in the terminal to English with the following command
LANG=CIn many terminal windows you can mark everything via the dropdown menu 'Edit', and then use the same dropdown menu to copy it (to the clipboard).
An alternative is to install the program page
xclipand then pipe the output to the programxclipas shown in the following example,sudo apt install xclip sudo lsblk -fm | xclip -selection clipboardAfter that you can paste it into the editing window of AskUbuntu.
Finally you can render it as 'code' either with the icon
{}above the editing window or by indenting each line four spaces. If the surrounding text is already indented you need to indent eight spaces.
sudodus
- 47,684