tmux

Meine ~/.tmux.conf.

Session Management

Auflisten aller aktuell laufenden tmux-Sitzungen:

Neue tmux-Sitzung mit dem Namen „hans“ starten:

Verbinden zur bestehenden Sitzung mit dem Namen „hans“:

Beendet tmux-Server und -Clients und zerstört alle Sitzungen:

Windows

Neues Fenster

Zum Fenster mit dem Index

Neuer Name für das Fenster

Panes

2 vertikale Panes

2 horizontale panes

swaps pane with another in the specified direction

Wähle das nächste Pane aus in der angegebenen Richtung

Wähle das nächste Pane aus in der numerischen Reihenfolge

Hilfreiche Befehle

Listet alle Tasten und das Kommando

Listed die Befehle

Listet alle Sessions, Fenster, Panes, usw.

tmux-Konf neu laden (based on a default tmux config)

Kürzel

Info

In tmux, hit the prefix ctrl+b

Windows (tabs)

Panes (splits)

Sharing between two different accounts

For different users, you have to set the permissions on the tmux socket so that both users can read and write it. There is only one prerequiste, that there be a group in common between the two users. If such a group does not exist it will be necessary to create one.

In the first terminal, start tmux where shared is the session name and shareds is the name of the socket:

Then chgrp the socket to a group that both users share in common. In this example, joint is the group that both users share. If there are other users in the group, then they also have access. So it might be recommended that the group have only the two members.

In the second terminal attach using that socket and session.

That's it. The session can be made read-only for the second user, but only on a voluntary basis. The decision to work read-only is made when the second user attaches to the session.

Siehe auch

Terminal

screen

powerline

Weblinks

https://wiki.ubuntuusers.de/tmux

A tmux Crash Course

tmux shortcuts & cheatsheet

HowtoForge: Sharing Terminal Sessions With Tmux And Screen