webalgotrader-blog-posts

TMUX ON LINUX (UBUNTU)

On Linux flavours like Ubuntu, TMUX is a terminal multiplexer, which means that it allows you to run multiple terminal sessions in a single window. This can be useful for things like keeping multiple servers open at once, or for working on different projects in different tabs.

For Linux / Ubuntu users who would like to keep some applications/ scripts/ programs running even after they disconnect from the terminal, a simple solution is to use TMUX. Use the following process and steps:-

To install TMUX on Ubuntu, open a terminal and type the following command:

sudo apt-get install tmux

Once TMUX is installed, you can start a new session by typing the following command:

tmux

This will create a new window with a single pane. You can then use the Ctrl+ b key combination to enter TMUX commands.

Following are some basic TMUX commands:

  • Ctrl+b c: Create a new pane.
  • Ctrl+b n: Create a new window.
  • Ctrl+b p: Switch to the previous pane.
  • Ctrl+b n: Switch to the next pane.
  • Ctrl+b w: List all windows.
  • Ctrl+b d: Detach from the current session.

To attach again to a detached session, open a terminal and type the following command:

tmux attach

You can also specify the session ID to reattach to. To find the session ID, use the tmux list-sessions command.

Tmux is a powerful tool that can be used to improve your productivity. By learning the basics of tmux, you can save yourself a lot of time and hassle.

Share with:



Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *