Reattach the session to your freshly opened terminal by typing tmux attach-session.You’ll see the session_name displayed before a colon ( :). Again, open a new terminal and type tmux list-sessions.You don’t believe me? You’re right you need to experiment by yourself. Did the loop stopped? Not at all! It continues to run in the background, because the tmux session itself is still alive. You’ve just created an infinite loop! Now, close the terminal. While : do echo 'This will never end, except if you hit CTRL+C' sleep 1 done In that case, you would only have one session, with the sweet name “0”. You can list every session currently running by typing tmux list-sessions. A new session will be created and attached to a client, your terminal. To understand the concept, let’s try to create a tmux session. If you already know GNU screen (another terminal multiplexer), tmux is similar but more powerful, and easier to config. That’s why it’s called a terminal multiplexer. With tmux, you can create multiple sessions which are totally independent from your terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |