In this video we will be looking at another great tool called t mocks. T mocks especially comes in handy when working in remote Secure Shell sessions, because it gives you the ability to continue your work from where you left off. It can also replace some of the features in Terminator if you're working for example on Mac, and you can't install Terminator. To get started with timOx on Ubuntu, we first need to install it sudo apt install demux then just run the command demux and you will find yourself inside a brand new virtual console. For demonstration purposes, we will open up a new tab and here you can see the list of open sessions with the MCs LS. Let's start a new timOx named session Here we can see that opening remarks session maintains the current directory to list and switch democ sessions inside demux hit Ctrl b s, we can see that we can switch to another teaming session.
Execute commands inside and switch back to our initial session if we want to, to detach meaning to leave session running and go back to the normal terminal, hit Ctrl B, D. Now we can see we have two sessions opened. To attach to a session, we use Discord. Alright, this scenario comes in handy when you log into a remote server and want to execute a long running task then leave and come back. When it ends, we will replicate this scenario with a quick script called infinity.sh. We will execute it. It's writing to the standard output.
Now let's detach for from demux. And if we look at the script is just a simple while loop that goes on forever printing text each second. Now when we come back to our session, we can see the script was running while we were detached from the session. And it's still outputting data to the console. I will manually stop it by hitting Ctrl C. Alright, let's go to our first demo session and close it. In order to manually do a demo session.
Use the following command This will kill the running session. If we switch over to our second tab, we can see that we have been locked off demux let's also close the Terminator tab and open a brand new demo session timOx gives you the possibility to split the screen just like Terminator. This is how we can do it horizontally. And this is how we can do it vertically. After that, use Ctrl B arrow to navigate between panes. You also have the possibility to create windows tabs.
Here is how we create how we list and how he did it. These last functionalities are similar to what Terminator offers. You can use Steamworks in situations where you want to have two or more panes, or even tabs in your remote Secure Shell connection, but you don't want to open multiple Secure Shell sessions. You could also use it locally as a terminator replacement, but the keyboard shortcut are much harder to use. Although they can be changed, you will lose the possibility to use the mocks remotely because opening a teamwork session and other teaming session is discouraged. And configuring new new t mux.
Keyboard Shortcuts might make demux a burden when working on lots of servers due to the shortcut differences.