tmux VS Mosh

Compare tmux vs Mosh and see what are their differences.

InfluxDB - Purpose built for real-time analytics at any scale.
InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
tmux Mosh
218 156
34,318 12,545
1.0% 0.5%
8.3 0.0
12 days ago about 2 months ago
C C++
GNU General Public License v3.0 or later GNU General Public License v3.0 only
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

tmux

Posts with mentions or reviews of tmux. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-07-23.
  • 20 Life hacks for DevOps Engineers
    8 projects | dev.to | 23 Jul 2024
    tmux is a powerful terminal multiplexer that enhances productivity by allowing session persistence, window and pane management, and customization through key bindings and configuration files. It supports scripting for automation, facilitates collaboration with shared sessions, and integrates well with various shells and tools.
  • My work setup for PHP development
    5 projects | dev.to | 10 Jul 2024
    Tmux
  • My HNG Journey. Stage Two: Containerization and Deployment of a Three tier application Using Docker and Nginx Proxy Manager
    3 projects | dev.to | 8 Jul 2024
    Configure the frontend Open up a new terminal. P.S. We can split the terminal session using tmux or run it as a system service, but to keep things fairly simple, we would leave the backend running in one terminal and open another terminal for the frontend.
  • Best Way to Open URLs in Your Terminal via Tmux
    5 projects | dev.to | 7 Jul 2024
    I have been using tmux for a while now. It was really worth it, especially after I started using neovim. One thing was really missing though compared to my previous setup and that was opening URLs. I always used my mouse to do that, but now I couldn't even do that because I am using the good old xterm as a terminal which doesn't have a built in feature like that.
  • 3. Essential Keymapping and Settings
    1 project | dev.to | 3 Jul 2024
    If the cursor is located on a number, the shortcuts +a and +x increments/decrements that number. Not only do I not have any use for this behaviour, +a is also used to control tmux, which I normally use together with neovim.
  • My Flow and Productivity has Improved with the Simplicity of Neovim
    14 projects | dev.to | 21 Jun 2024
    I said multiplexer didn't I? tmux to be exact. Another game-changer for me. The beauty of using tmux is that I can create sessions, panes, and windows that can then be moved, split, detached, and everything in between. I also have Neovim shortcuts built in so that I can easily move with hjkl which if you know Neovim, that's life.
  • Show HN: Shpool, a Lightweight Tmux Alternative
    17 projects | news.ycombinator.com | 13 Jun 2024
    > tmux/screen do not break copy-paste

    Tmux breaks interacting with the clipboard so much that it has its own dedicated Wiki page dealing with all of the different issues and settings: https://github.com/tmux/tmux/wiki/Clipboard

  • Ask HN: How to make `screen` behave like a native shell?
    2 projects | news.ycombinator.com | 6 Jun 2024
    If so, tmux in control mode [1] plus iTerm2 could be what you're looking for. You would use the -CC flag when starting tmux either locally or on a remote host.

    This brings all the niceties of an iTerm shell session, but still allow you to detach from tmux and reattach at a later point whilst still using the native iTerm features. Almost indefinite scrollback, as you mentioned. Also good terminal search facilities, and features to filter text in the session to display only lines that contain a keyword. Instant Replay lets you drag a slider and replay old TUI output that may have been erased from the screen [2]. And the configurable hotkeys are very convenient for pane splitting, which I find to be more convenient than the leader-plus-command of tmux. I find the toolbelt window useful, and sometimes define snippets of long cumbersome commands where it isn't possible or maybe appropriate to define aliases on a remote host. For local tmux sessions, I like some of the features of the iTerm shell extensions, like jumping back to the points of previous commands entered, which helps navigate through large amounts of console output. Or the directory name picker based on frecency, which is useful for adding directory names when composing long commands or to jump to a directory when using Zsh (which lets you omit the 'cd' command).

    [1] https://github.com/tmux/tmux/wiki/Control-Mode

    [2] https://iterm2.com/features.html

  • CLI Tools every Developer should know
    5 projects | dev.to | 24 May 2024
    You can follow this guide to install Tmux on your system: Tmux Installation Guide
  • What's New in Neovim 0.10
    8 projects | news.ycombinator.com | 16 May 2024
    "Nvim 0.10 can now use the OSC 52 escape sequence to write to (or read from) the system clipboard."

    This is a big deal! (it shouldn't be, but it is)

    My main complaints about vim/emacs in the past was at the sheer complexity of getting something that should not even be a concern (clipboard integration) working properly, when other text/code editors did not have this problem at all.

    Searching online, it seems like tmux has some nice documentation related to OSC 52 usage:

    https://github.com/tmux/tmux/wiki/Clipboard

    I will be playing around with this for a bit to understand it more. But honestly, this is the sort of thing that should "Just Work TM".

    "VTE terminals (GNOME terminal, XFCE terminal, Terminator) do not support the OSC 52 escape sequence."

    https://gitlab.gnome.org/GNOME/vte/-/issues/2495

    That's a shame, but I'm not against using a different terminal emulator. Up until now I did not really have a good reason to.

Mosh

Posts with mentions or reviews of Mosh. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-06-13.
  • You (probably) do not understand UDP
    1 project | dev.to | 3 Aug 2024
    Normal ssh is TCP-based. But there is also a different implementation named mosh.
  • Show HN: Shpool, a Lightweight Tmux Alternative
    17 projects | news.ycombinator.com | 13 Jun 2024
    Do you know mobile shell (mosh)? [1]

    Seems like most of the features you need are what mosh offers. I've been using it for decades, probably, and it is pretty awesome for latent mobile connections (read as: throttled 2G @16kBit/s).

    https://github.com/mobile-shell/mosh

  • Lsix: Like "Ls", but for Images
    8 projects | news.ycombinator.com | 6 Jun 2024
    I use tmux, but as far as unreliable connections, I've found mosh[0] to be the best solution to the problem (when you have the ability to install it). It basically runs a background process on connection not tied to the session that your client will automatically reconnect to if the connection fails. I regularly close my laptop, travel between home and work, open it back up and the connection is available almost instantly.

    [0] https://mosh.org/

  • Show HN: A WireGuard Powered Remote Shell
    5 projects | news.ycombinator.com | 10 May 2024
  • The IDEs we had 30 years ago and we lost
    14 projects | news.ycombinator.com | 28 Dec 2023
    If you haven’t already, and I know this doesn’t hold up for GUI emacs or vim, but consider running them through https://mosh.org/
  • mosh: Mobile Shell
    1 project | news.ycombinator.com | 4 Dec 2023
  • Write Your Own Terminal
    9 projects | news.ycombinator.com | 10 Nov 2023
    FWIW, I wouldn't try to parse escape sequences "directly" from the input bytestream -- it's easy to end up with annoying bugs. Longer-term it's probably better to separate the logic e.g.:

    - First step (for a UTF-8-input terminal emulator) means "lexing" the input bytestream as UTF-8 into a stream of USVs, which involves some subtleties (https://github.com/mobile-shell/mosh/blob/master/src/termina...).

    - Second step is to run the DEC parser/FSM logic on the sequence of USVs, which is independent of the escape sequences (https://vt100.net/emu/dec_ansi_parser ; https://github.com/mobile-shell/mosh/blob/master/src/termina...).

    - And then the third step is for the terminal to execute the "dispatch"/"execute"/etc. actions coming from the FSM, which is where the escape sequences and control chars get implemented (https://github.com/mobile-shell/mosh/blob/master/src/termina...).

    Without this separation, it's easier to end up with bugs where, e.g., a UTF-8 sequence or an ANSI escape sequence is treated differently when it's split between multiple read() calls vs. all in one call.

  • Typing Fast Is About Latency, Not Throughput
    4 projects | news.ycombinator.com | 9 Nov 2023
    Btw, you can use mosh to hide the latency of SSH. https://mosh.org/
  • How do I enable new pane/tab with CWD while using mosh?
    2 projects | /r/KittyTerminal | 7 Aug 2023
    I've been using Kitty's SSH features for as long as I can remember but I recently setup Mosh and I really like how it doesn't drop connections and supports roaming.
  • Buying an iPad Pro for coding was a mistake
    7 projects | news.ycombinator.com | 29 Jun 2023
    I am surprised many people write about ssh into a server. Mosh[1] feels more responsive and it also supports longer sessions.

    [1] - https://mosh.org/

What are some alternatives?

When comparing tmux and Mosh you can also consider the following projects:

zellij - A terminal workspace with batteries included

Eternal Terminal - Re-Connectable secure remote shell

kitty - Cross-platform, fast, feature-rich, GPU based terminal

Gravitational Teleport - The easiest, and most secure way to access and protect all of your infrastructure.

tilix - A tiling terminal emulator for Linux using GTK+ 3

Advanced SSH config - :computer: make your ssh client smarter

toggleterm.nvim - A neovim lua plugin to help easily manage multiple terminal windows

Code-Server - VS Code in the browser

i3 - A tiling window manager for X11

PowerShell - PowerShell for every system!

emacs-theme-gruvbox - Gruvbox is a retro groove color scheme for Emacs. Port of the Vim version.

parallel-ssh - Asynchronous parallel SSH client library.

InfluxDB - Purpose built for real-time analytics at any scale.
InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured

Did you konow that C is
the 7th most popular programming language
based on number of metions?