Tmux is a terminal multiplexer: it enables a number of terminals to be created,
accessed, and controlled from a single screen. tmux may be detached from a screen
and continue running in the background, then later reattached.
When tmux is started it creates a new session with a single window and displays it
on screen. A status line at the bottom of the screen shows information on the
current session and is used to enter interactive commands.
Specially while doing Kodekloud task its more convicent to run the same command , on multiple servers
1. To Start a new session
$ tmux new
: new
2. To Show all sessions
$ tmux ls
$ tmux
list-sessions
Ctrl + b s
$ tmux at -t
mysession
$ tmux attach -t
mysession
$ tmux kill-ses -t
mysession
$ tmux kill-session
-t mysession
PANES
: setw
synchronize-panes
9. Close current pane
$ tmux info
Happy Learning!!!!
Apart from this if you need more clarity, I have made a tutorial video on this, please go through and share your comments. Like and share the knowledge
0 Comments