Skip to content

Instantly share code, notes, and snippets.

@AkiAfroo
Forked from P7h/tmux_vs_screen.md
Last active September 4, 2019 06:06
Show Gist options
  • Select an option

  • Save AkiAfroo/b4aa020087f257265cb743f47c4a3fd8 to your computer and use it in GitHub Desktop.

Select an option

Save AkiAfroo/b4aa020087f257265cb743f47c4a3fd8 to your computer and use it in GitHub Desktop.
tmux vs screen commands

tmux vs. Screen

Action tmux screen
start a new session tmux OR
tmux new OR
tmux new-session
screen
start a new session with a name tmux new -s name screen -S name
re-attach a detached session tmux attach OR
tmux attach-session
screen -r
re-attach a detached session with a name tmux attach -t name screen -r name
re-attach an attached session (detaching it from elsewhere) tmux attach -d OR
tmux attach-session -d
screen -dr
re-attach an attached session (keeping it attached elsewhere) tmux attach OR
tmux attach-session
screen -x
detach from currently attached session ^b d OR
^b :detach
^a ^d OR
rename-window to newname ^b , OR
^b :rename-window
^a A
list windows ^b w ^a w
list windows in chooseable menu ^a "
go to window # ^b # ^a #
go to last-active window ^b l ^a l
go to next window ^b n ^a n
go to previous window ^b p ^a p
see keybindings ^b ? ^a ?
list sessions ^b s OR
tmux ls OR
tmux list-sessions
screen -ls
toggle visual bell ^a ^g
create another shell ^b c ^a c
exit current shell ^d ^d
split pane horizontally ^b "
split pane vertically ^b %
switch to another pane ^b o
kill the current pane ^b x OR
(logout/^D)
close other panes except the current one ^b !
swap location of panes ^b ^o
show time ^b t
show numeric values of panes ^b q
enable scroll/view scrollback ^b [ (q to exit) ^a [ (q to exit)
copy text in one view ^a [ ^m (then highlight text and press enter)
paste text into a view ^a ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment