2

For my work, I have to travel a lot. This means I have to power down my laptop often. The downside of this it that is always takes some time after a clean power on to open all the terminals to continue my work where I left.

Is there such thing as terminal bookmarks? It would be ideal if I could bookmark the state of the terminal, meaning that all tabs, the order of tabs, their title, their up key history (usually I Ctrl+c a running application, do some debugging elsewhere, press the up key and then Enter to restart the application), ... are stored. You could compare it with a bookmark in your browser which opens a series of tabs.

Having such functionality would drastically reduce the amount of time needed to restore work environments.

By the way, I am aware of the Hibernate functionality in Ubuntu, but this is not what I am looking for. Sometimes, I really have to reboot, unfortunately.

I am using the MATE desktop environment, if that matters.

6

I think what you need is byobu, install and play around with it you will love it. Documentation.

To install:

  • sudo apt install byobu

byobu is a script that launches a text based window manager (either screen(1) or tmux(1)) in the byobu configuration. This enables the display of system information and status notifications within two lines at the bottom of the screen session. It also enables multiple tabbed terminal sessions, accessible through simple keystrokes.

byobu currently defaults to using tmux(1) (if present) as the backend, however, this can be overridden with the byobu-select-backend(1) utility.

To launch at boot:

  • byobu-enable

Decide which multiplexer the backend should use:

  • byobu-select-backend

    Select the byobu backend:
       1. tmux
       2. screen
    
    Choose 1-2 [1]:
    

Using sessions [ What your looking for and why I love it]:

A session is simply a running instance of Byobu. A session consists of a collection of windows, which are basically shell sessions, and panes, which are windows split into multiple sections.

The first time you start Byobu, it starts you a fresh session in which you create windows and panes. On subsequent connections, if you have only one session open, Byobu will automatically open that session when you connect; if you have more than one session open, Byobu will ask you which session you want to use with a prompt like this:

Byobu sessions...

  1. tmux: 1: 1 windows (created Wed Aug  3 16:34:26 2016) [80x23]
  2. tmux: 2: 1 windows (created Wed Aug  3 16:34:38 2016) [80x23]
  3. Create a new Byobu session (tmux)
  4. Run a shell without Byobu (/bin/bash)

Choose 1-4 [1]: 

Checkout this excellent tutorial on byobu from digitalocean.

  • 4
    Please add just a little more detail and then refer to the documentation for additional details or perhaps convert this to a comment. As it is now it borders on a link only answer – Panther Sep 6 '18 at 15:10
  • 1
    That looks promising. Great suggestion George! – Christina Vandewijk Sep 6 '18 at 15:28
  • 1
    @panther why do have to drive such a hard bargain, will do so ASAP! – George Udosen Sep 6 '18 at 15:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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