Skip to content

EbenGitHub/How-to-use-tmux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Getting Started

Installation

For Ubuntu

sudo apt-get install tmux

In Mac

brew install tmux

Using your tmux

To start new session

tmux

To start new session in detached mode

tmux new -d "<your command here>"

To split panel into left and right

Ctrl-b %

To split panel into top and bottom

Ctrl-b "

To navigate between panels

Ctrl-b <arrow key>

To close a panel

exit

or you can also

Ctrl-d

To create a new window

Ctrl-b c

To switch to the previous and next window (according to the order in your status bar)

Ctrl-b p
Ctrl-b n
Ctrl-b <number>

Session Handling

To detach your current session

Ctrl-b d
Ctrl-b D

To see/list sessions that are running

tmux ls

To connect to that session you start tmux again but this time tell it which session to attach to

tmux attach -t <number>

To start a new session with preferred name

tmux new -s <name>

To rename your existing session

tmux rename-session -t <number> <name>

To connect to existing session using name

tmux attach -t <name>

Moving on

To list all the available commands

Ctrl-b ?

To toggle the panel between full screen and shrink to the previous size

Ctrl-b z

To resize the panel in any direction

Ctrl-b Ctrl-<arrow key>

To rename the current window

Ctrl-b ,

EbenGitHub

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published