LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Copy output of Terminal Buffer (https://www.linuxquestions.org/questions/debian-26/copy-output-of-terminal-buffer-351007/)

tryangle 08-07-2005 10:54 PM

Copy output of Terminal Buffer
 
I did an update using Synaptic and some errors showed up, so I thought it would be a good idea to save the terminal buffer output to a file. But first I checked my system using grep -r "Preconfiguring packages" * to see if the file was already there somewhere, but was unable to find it. I tried to copy and paste the contents, but was unable to copy the output to the clipboard. I searched Google on this, but haven't found an answer. I did, however, learn that I can read what scrolls by in the terminal buffer by pressing shift page up and page down. I also searched the forum here and found 6 results for terminal buffer... but none of them had any info on copying the terminal buffer output. I guess there is no file because it was just echoed... but is there a way to copy this info besides typing it out in a text editor? Is there a way to > logfile.log for upgrades using synaptic?

TIA for any suggestions,
tryangle

Dead Parrot 08-08-2005 02:24 AM

Don't know about Synaptic, but you can log the output of any command on the command line using the tee utility. For example,
Code:

apt-get dist-upgrade | tee /tmp/apt.log
will copy the output of "apt-get dist-upgrade" to /tmp/apt.log .

In general, you can copy text to the clipboard by dragging your mouse with the left button pressed. Then you can paste the highlighted text in another terminal or application by pressing the middle mouse button. This doesn't work in all applications, though.

tryangle 08-08-2005 04:09 PM

That middle mouse button rocks and scrolls... w00t!


All times are GMT -5. The time now is 08:19 AM.