However, there are two alternatives to quitting a
byobusession: locking and disconnecting. The first, activated with F12, locks access to your screen data until you enter your system password.
The second is the most powerful feature of
screenand also works beautifully in
byobu: You can exit it and do other things for a while and then reconnect later; both
byobupick up where you left off. For example, you could be typing at your desk, detach from a session and go home, reconnect, and carry on as if nothing had changed. What’s more, all the programs you ran from
byobucarry on running even while
byobuis disconnected. It even automatically disconnects for you if someone closes your terminal window while it is in a locked state (with Ctrl+A+X).
To disconnect, press F6. You are returned to the prompt from which you launched
byobuand can carry on working, close the terminal you had opened, or even log out completely. When you want to reconnect, run the command
byobu -R. You can, in the meantime, just run
byobuand start a new session without resuming the previous one, but that is not wise if you value your sanity. You can disconnect and reconnect the same session as many times you want, which potentially means you need never lose your session again.
Although this has been a mere taste of what
screencan do, hopefully you can see how useful they can be. Check the man pages for each to learn more.