Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to do some debugging in Android and I am running a live logcat in the Terminal, but the problem is that there is too much information generated so that when I am finished and try to copy all the information received by choosing "Select All" and then "Copy" a lot of the early output which is produced isn't copied. I was aware of history, but that just provides a list of commands that have previously been entered, not the output.

Can I see a history of all the output that the terminal gives, or perhaps can I have the terminal save as a text file all the output that it is producing?

share|improve this question
up vote 8 down vote accepted

You can append all logs to a text file by redirecting output. But this requires each command is executed like this (this will catch both stdout & stderr)

command >>file.txt 2>&1


You can record screencasts of terminal, since it stores screencast in text file, you can use that. Its called shelr

Files are stored in ~/.local/share/shelr/


Note: I have no idea of android development.This answer is based on shell scripting.

share|improve this answer
Both ideas work perfectly, thank you :) – coversnail May 14 '12 at 8:21
shelr is Awesome – Achu May 14 '12 at 8:25

I had the same problem the other day, and I found this solution:

Maybe it's not the best thing you could do I think this is what you were asking for.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.