Tech C**P
15 subscribers
161 photos
9 videos
59 files
304 links
مدرس و برنامه نویس پایتون و لینوکس @alirezastack
Download Telegram
tmux is a terminal multiplexer. It lets you switch easily between several programs in one terminal, detach them (they keep running in the background) and reattach them to a different terminal.
after installation you can list your sessions by:
tmux ls

Output would be something like this:
0: 1 windows (created Mon Aug  7 10:34:00 2017) [135x52] (attached)
2: 1 windows (created Mon Aug 7 13:56:10 2017) [126x25]

(attached) at the end of session 0 tells us that the session has been attached by a user.
You can attach a session by:
tmux attach -t 0
-t tells tmux which session should be attached.

Now let's say you want to detach a session you need to press ^b+d (CONTROL+b and then press d).

If you want to split your window to multiple panes press ^b+" (split horizontally) and/or ^b+% (split vertically).

^b+n : next window
^b+(up/down/left/right) : to move between panes
^b+? : help and shortcuts
^b+x : kill a pane

THE GREAT THING about tmux is that multiple users can attach the same session and work simultaneously!

I know you will get tired if I say more about tmux, so go and explore more yourself and see the real power of multiplexers.

#tmux #linux #sysadmin #terminal #multiplexer