ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    TMUX: hype or function

    IT Discussion
    5
    8
    760
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gjacobseG
      gjacobse
      last edited by

      Scanning through my recent feed, I found mention of using TMUX in Linux. Has anyone been using this, is there benefit to using it?


      tmux is a terminal multiplexer for Unix-based operating systems. Simply put, it acts as an add-on to an existing terminal.

      travisdh1T 1 Reply Last reply Reply Quote 0
      • travisdh1T
        travisdh1 @gjacobse
        last edited by

        @gjacobse said in TMUX: hype or function:

        Scanning through my recent feed, I found mention of using TMUX in Linux. Has anyone been using this, is there benefit to using it?


        tmux is a terminal multiplexer for Unix-based operating systems. Simply put, it acts as an add-on to an existing terminal.

        Off the top of my head, tmux is like screen. It's a way to manage multiple terminal sessions.

        I used to use them often, but today I ask myself why I feel it's necessary? What's failed that I need multiple terminal sessions at one time. Every time it's either "this should be a VM" or "this should be a container".

        scottalanmillerS 1 Reply Last reply Reply Quote 1
        • stacksofplatesS
          stacksofplates
          last edited by stacksofplates

          I used to use tmux very heavily. I recently mostly used Zellij, which is a similar tool but written in Rust.

          However, now I almost exclusively use multiple buffers in neovim with a terminal overlay. Screenshot 2024-01-04 at 18.17.34.png

          Once really nice thing about tmux is you can keep jobs running in the session after disconnecting from SSH. So if you have a long running job (like a large rsync) you can just disconnect from the session on the server but let it keep running.

          scottalanmillerS EddieJenningsE 2 Replies Last reply Reply Quote 1
          • stacksofplatesS
            stacksofplates
            last edited by

            Before using the buffers in neovim, I would have multiple windows open, usually one for each code base, and then I could have multiple panes open in each window for different files, a terminal, etc. Now I mostly just have a tab in the terminal for the codebase and then I will have buffers open for multiple files.

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @travisdh1
              last edited by

              @travisdh1 said in TMUX: hype or function:

              Off the top of my head, tmux is like screen. It's a way to manage multiple terminal sessions.

              Yeah, it's like an upgraded screen I think. Screen is fine for me and I started on that. Useful tools, not sure if there is much "hype" around them.

              1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @stacksofplates
                last edited by

                @stacksofplates said in TMUX: hype or function:

                Once really nice thing about tmux is you can keep jobs running in the session after disconnecting from SSH

                Which means, for those who miss the implication, that you can reconnect to the same session from a different location.

                stacksofplatesS 1 Reply Last reply Reply Quote 0
                • EddieJenningsE
                  EddieJennings @stacksofplates
                  last edited by

                  @stacksofplates said in TMUX: hype or function:

                  Once really nice thing about tmux is you can keep jobs running in the session after disconnecting from SSH. So if you have a long running job (like a large rsync) you can just disconnect from the session on the server but let it keep running.

                  I often use nohup for this.

                  1 Reply Last reply Reply Quote 0
                  • stacksofplatesS
                    stacksofplates @scottalanmiller
                    last edited by stacksofplates

                    @scottalanmiller said in TMUX: hype or function:

                    @stacksofplates said in TMUX: hype or function:

                    Once really nice thing about tmux is you can keep jobs running in the session after disconnecting from SSH

                    Which means, for those who miss the implication, that you can reconnect to the same session from a different location.

                    Yeah. You can even share the socket so that multiple people can view a single session. Good for pairing with others.

                    Which is how things like tmate operate

                    https://tmate.io/

                    1 Reply Last reply Reply Quote 2
                    • 1 / 1
                    • First post
                      Last post