An advanced session and window usage
Back when we discussed sessions, we walked through how to switch from one session to another. What we didn't cover were some more advanced things such as switching from one window in one session directly to another specific window in another session, moving windows between sessions and sharing windows between sessions.
Jumping from one window in a session to another window in another session
A couple of chapters back, we discussed switching between multiple sessions using <Prefix>, s to bring up the list of sessions and select any of them.
OK! So let's get set up a bit. We'll need two active sessions with a couple of windows each. If you followed along the previous section, we should already have one active session; let's create another session using the tmux command, new-session -s "Another"
.
Now let's create another window using <Prefix>, c and run some command in it, for instance, top:
$ top
The output of this command is shown in the following...