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 use byobu on sh and was doing some program which was left over for at least 24 hours, I had disconnected from the machine and logged in back after 24 hours is there a way I could see the messages which were on screen in this case.I am using Ubuntu 11.10

share|improve this question
up vote 4 down vote accepted

Just run


again and it will re-attach to the current session in the background (for the current user). If there is no, it will create a new session.

In case a lot of output has been produced and you'd like to scroll up, use the Copy mode by pressing F7. It will "disconnect" the cursor and allows you to scroll up and search. Use the arrow keys ( ) or PageUp / PageDown keys to move around, and Esc to get control back on the shell.

See also: Can Mouse Wheel Scrolling be enabled in Byobu?

share|improve this answer
yes I did the same it attached the same session but the problem is there are a lot of messages on screen and the scroll bar has its limit – Registered User Jan 9 '13 at 2:56
Use F7 to enable copy mode and you can scroll using arrow keys or page-up/down. – gertvdijk Jan 9 '13 at 3:00
I logged on to the system remotley via ssh and currently using putty from Windows so F7 pressed here how will it get there? – Registered User Jan 9 '13 at 6:37
You're diverging from your original question. If pressing F7 doesn't propagate through PuTTY to byobu, then it's Windows/PuTTY issue, much wider than just byobu or getting messages on the screen. – gertvdijk Jan 9 '13 at 9:59
@gertvdijk he has those function keys mapped to actions. there should be an option to disable them in bios, or he might have to try holding fn key and pressing function keys. he has a valid point, probably not phrased clearly. – Mahesh Jan 11 '13 at 12:43

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.