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.

Revisions

  1. AkiAfroo revised this gist Sep 4, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tmux_vs_screen.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # tmux and screen commands
    # TMUX and SCREEN commands
    ---

    | **Action** | **tmux** | **screen** |
  2. AkiAfroo revised this gist Sep 4, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tmux_vs_screen.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # tmux vs. screen commands
    # tmux and screen commands
    ---

    | **Action** | **tmux** | **screen** |
  3. @P7h P7h revised this gist Dec 7, 2016. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions tmux_vs_screen.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    # tmux vs. screen commands
    ---

    | **Action** | **tmux** | **screen** |
    |---|---|---|
    @@ -35,15 +36,15 @@
    | copy text in one view | | <kbd>^a</kbd> <kbd>[</kbd> <kbd>^m</kbd><br>(highlight text and <kbd>enter</kbd>)<br>(to save: <kbd>^a</kbd> <kbd>></kbd>) |
    | paste text into a view | | <kbd>^a</kbd> <kbd>]</kbd> |

    ### Other useful references
    ## Other references
    Extended from [tmux & screen cheat-sheet](http://www.dayid.org/comp/tm.html).

    #### tmux
    ### tmux
    * tmux shortcuts & cheatsheet: [https://gist.github.com/MohamedAlaa/2961058](https://gist.github.com/MohamedAlaa/2961058)
    * Book &raquo; "tmux 2: Productive Mouse-Free Development" 1st Ed: [https://www.amazon.com/tmux-2-Productive-Mouse-Free-Development/dp/1680502212](https://www.amazon.com/tmux-2-Productive-Mouse-Free-Development/dp/1680502212)
    * Book &raquo; "tmux: Productive Mouse-Free Development" 1st Ed: [https://www.amazon.com/tmux-Productive-Development-Brian-Hogan/dp/1934356964](https://www.amazon.com/tmux-Productive-Development-Brian-Hogan/dp/1934356964)

    #### screen
    ### screen
    * Screen cheatsheet: [http://www.catonmat.net/download/screen.cheat.sheet.pdf](http://www.catonmat.net/download/screen.cheat.sheet.pdf)
    * Screen reference: [http://aperiodic.net/screen/quick_reference](http://aperiodic.net/screen/quick_reference)
    * Book &raquo; "GNU Screen: The virtual terminal manager" 1st Ed: [https://www.amazon.com/GNU-Screen-virtual-terminal-manager/dp/9888381393](https://www.amazon.com/GNU-Screen-virtual-terminal-manager/dp/9888381393)
  4. @P7h P7h revised this gist Dec 7, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tmux_vs_screen.md
    Original file line number Diff line number Diff line change
    @@ -40,7 +40,7 @@ Extended from [tmux & screen cheat-sheet](http://www.dayid.org/comp/tm.html).

    #### tmux
    * tmux shortcuts & cheatsheet: [https://gist.github.com/MohamedAlaa/2961058](https://gist.github.com/MohamedAlaa/2961058)
    * Book &raquo; "tmux 2: Productive Mouse-Free Development" 1st Ed: [https://www.amazon.com/tmux-2-Productive-Mouse-Free-Development/dp/1680502212](https://www.amazon.com/tmux-2-Productive-Mouse-Free-Development/dp/1680502212)
    * Book &raquo; "tmux 2: Productive Mouse-Free Development" 1st Ed: [https://www.amazon.com/tmux-2-Productive-Mouse-Free-Development/dp/1680502212](https://www.amazon.com/tmux-2-Productive-Mouse-Free-Development/dp/1680502212)
    * Book &raquo; "tmux: Productive Mouse-Free Development" 1st Ed: [https://www.amazon.com/tmux-Productive-Development-Brian-Hogan/dp/1934356964](https://www.amazon.com/tmux-Productive-Development-Brian-Hogan/dp/1934356964)

    #### screen
  5. @P7h P7h revised this gist Dec 7, 2016. 1 changed file with 48 additions and 32 deletions.
    80 changes: 48 additions & 32 deletions tmux_vs_screen.md
    Original file line number Diff line number Diff line change
    @@ -1,33 +1,49 @@
    # tmux vs. screen commands
    | **Action** | **tmux** | **screen** |
    |:--------------------------------------------------------------|:----------------------------|:----------------------------------------------|
    | start a new session | tmux OR<br>tmux new OR<br>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<br>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<br>tmux attach-session -d | screen -dr |
    | re-attach an attached session (keeping it attached elsewhere) | tmux attach OR<br>tmux attach-session | screen -x |
    | detach from currently attached session | ^b d OR<br>^b :detach | ^a ^d OR |
    | rename-window to newname | ^b , <newname> OR<br>^b :rename-window <newname> | ^a A <newname> |
    | 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<br>tmux ls OR<br>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<br> (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 ] |

    | **Action** | **tmux** | **screen** |
    |---|---|---|
    | start a new session | <kbd>tmux</kbd><br><kbd>tmux new</kbd><br><kbd>tmux new-session</kbd> | <kbd>screen</kbd> |
    | start a new session with a name | <kbd>tmux new -s name</kbd> | <kbd>screen -S name</kbd> |
    | re-attach a detached session | <kbd>tmux attach</kbd><br><kbd>tmux attach-session</kbd> | <kbd>screen -r</kbd> |
    | re-attach a detached session with a name | <kbd>tmux attach -t name</kbd><br><kbd>tmux a -t name</kbd> | <kbd>screen -r name</kbd> |
    | re-attach an attached session (detaching it from elsewhere) | <kbd>tmux attach -d</kbd><br><kbd>tmux attach-session -d</kbd> | <kbd>screen -dr</kbd> |
    | re-attach an attached session (keeping it attached elsewhere) | <kbd>tmux attach</kbd><br><kbd>tmux attach-session</kbd> | <kbd>screen -x</kbd> |
    | detach from currently attached session | <kbd>^b</kbd> <kbd>d</kbd><br><kbd>^b</kbd> <kbd>:detach</kbd> | <kbd>^a</kbd> <kbd>d</kbd> |
    | rename-window to newname | <kbd>^b</kbd> <kbd>,</kbd><br><kbd>^b</kbd> <kbd>:rename-window <newname></kbd> | <kbd>^a</kbd> <kbd>A</kbd> <kbd>newname</kbd> |
    | list windows | <kbd>^b</kbd> <kbd>w</kbd> | <kbd>^a</kbd> <kbd>w</kbd> |
    | list windows in chooseable menu | | <kbd>^a</kbd> <kbd>"</kbd> |
    | go to window # | <kbd>^b</kbd> <kbd>#</kbd> | <kbd>^a</kbd> <kbd>#</kbd> |
    | go to last-active window | <kbd>^b</kbd> <kbd>l</kbd> | <kbd>^a</kbd> <kbd>l</kbd> |
    | go to next window | <kbd>^b</kbd> <kbd>n</kbd> | <kbd>^a</kbd> <kbd>n</kbd> |
    | go to previous window | <kbd>^b</kbd> <kbd>p</kbd> | <kbd>^a</kbd> <kbd>p</kbd> |
    | see keybindings | <kbd>^b</kbd> <kbd>?</kbd> | <kbd>^a</kbd> <kbd>?</kbd> |
    | list sessions | <kbd>^b</kbd> <kbd>s</kbd><br><kbd>tmux ls</kbd><br><kbd>tmux list-sessions</kbd> | <kbd>screen -ls</kbd> |
    | toggle visual bell | | <kbd>^a</kbd> <kbd>^g</kbd> |
    | kill the current pane | <kbd>^b</kbd> <kbd>x</kbd><br><kbd>logout</kbd><br><kbd>^D</kbd> | <kbd>^a</kbd> <kbd>X</kbd> |
    | destroy the current window | <kbd>^b</kbd> <kbd>&</kbd> | <kbd>^a</kbd> <kbd>k</kbd><br><kbd>^a</kbd> <kbd>^k</kbd> |
    | exit current shell | <kbd>^d</kbd> | <kbd>^d</kbd> |
    | create another window | <kbd>^b</kbd> <kbd>c</kbd> | <kbd>^a</kbd> <kbd>c</kbd> |
    | switch to another pane | <kbd>^b</kbd> <kbd>o</kbd> | <kbd>^a</kbd> <kbd>Tab</kbd> |
    | split pane horizontally | <kbd>^b</kbd> <kbd>"</kbd> | <kbd>^a</kbd> <kbd>S</kbd><br>then <kbd>^a</kbd> <kbd>Tab</kbd><br>and <kbd>^a</kbd> <kbd>c</kbd> |
    | split pane vertically | <kbd>^b</kbd> <kbd>%</kbd> | <kbd>^a</kbd> <kbd>\|</kbd><br>then <kbd>^a</kbd> <kbd>Tab</kbd><br>and <kbd>^a</kbd> <kbd>c</kbd> |
    | close other panes except the current one | <kbd>^b</kbd> <kbd>!</kbd> | |
    | swap location of panes | <kbd>^b</kbd> <kbd>^o</kbd> | |
    | re-arrange current panes within same window (different layouts) | <kbd>^a</kbd> <kbd>space</kbd> | |
    | show time | <kbd>^b</kbd> <kbd>t</kbd> | |
    | show numeric values of panes | <kbd>^b</kbd> <kbd>q</kbd> | |
    | enable scroll / view scrollback | <kbd>^b</kbd> <kbd>[</kbd><br>(and to exit <kbd>q</kbd>) | <kbd>^a</kbd> <kbd>[</kbd><br>(and to exit <kbd>q</kbd>) |
    | copy text in one view | | <kbd>^a</kbd> <kbd>[</kbd> <kbd>^m</kbd><br>(highlight text and <kbd>enter</kbd>)<br>(to save: <kbd>^a</kbd> <kbd>></kbd>) |
    | paste text into a view | | <kbd>^a</kbd> <kbd>]</kbd> |

    ### Other useful references
    Extended from [tmux & screen cheat-sheet](http://www.dayid.org/comp/tm.html).

    #### tmux
    * tmux shortcuts & cheatsheet: [https://gist.github.com/MohamedAlaa/2961058](https://gist.github.com/MohamedAlaa/2961058)
    * Book &raquo; "tmux 2: Productive Mouse-Free Development" 1st Ed: [https://www.amazon.com/tmux-2-Productive-Mouse-Free-Development/dp/1680502212](https://www.amazon.com/tmux-2-Productive-Mouse-Free-Development/dp/1680502212)
    * Book &raquo; "tmux: Productive Mouse-Free Development" 1st Ed: [https://www.amazon.com/tmux-Productive-Development-Brian-Hogan/dp/1934356964](https://www.amazon.com/tmux-Productive-Development-Brian-Hogan/dp/1934356964)

    #### screen
    * Screen cheatsheet: [http://www.catonmat.net/download/screen.cheat.sheet.pdf](http://www.catonmat.net/download/screen.cheat.sheet.pdf)
    * Screen reference: [http://aperiodic.net/screen/quick_reference](http://aperiodic.net/screen/quick_reference)
    * Book &raquo; "GNU Screen: The virtual terminal manager" 1st Ed: [https://www.amazon.com/GNU-Screen-virtual-terminal-manager/dp/9888381393](https://www.amazon.com/GNU-Screen-virtual-terminal-manager/dp/9888381393)
  6. @P7h P7h revised this gist Oct 24, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tmux_vs_screen.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # tmux vs. Screen
    # tmux vs. screen commands
    | **Action** | **tmux** | **screen** |
    |:--------------------------------------------------------------|:----------------------------|:----------------------------------------------|
    | start a new session | tmux OR<br>tmux new OR<br>tmux new-session | screen |
  7. @P7h P7h revised this gist Oct 24, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tmux_vs_screen.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # tmux vs. Screen
    | *Action* | *tmux* | *screen* |
    | **Action** | **tmux** | **screen** |
    |:--------------------------------------------------------------|:----------------------------|:----------------------------------------------|
    | start a new session | tmux OR<br>tmux new OR<br>tmux new-session | screen |
    | start a new session with a name | tmux new -s name | screen -S name |
  8. @P7h P7h revised this gist Oct 24, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions tmux_vs_screen.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    # tmux vs. Screen
    | *Action* | *tmux* | *screen* |
    |:--------------------------------------------------------------|:----------------------------|:----------------------------------------------|
    | start a new session | tmux OR<br>tmux new OR<br>tmux new-session | screen |
  9. @P7h P7h revised this gist Oct 24, 2014. 1 changed file with 9 additions and 15 deletions.
    24 changes: 9 additions & 15 deletions tmux_vs_screen.md
    Original file line number Diff line number Diff line change
    @@ -1,34 +1,28 @@
    | *Action* | *tmux* | *screen* |
    |:--------------------------------------------------------------|:----------------------------|:----------------------------------------------|
    | start a new session | tmux OR<br>tmux new OR<br>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 | screen -r |
    | | tmux attach-session | |
    | start a new session | tmux OR<br>tmux new OR<br>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<br>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 | screen -dr |
    | | tmux attach-session -d | |
    | re-attach an attached session (keeping it attached elsewhere) | tmux attach OR | screen -x |
    | | tmux attach-session | |
    | detach from currently attached session | ^b d OR | ^a ^d OR |
    | | ^b :detach | ^a :detach |
    | rename-window to newname | ^b , <newname> OR | ^a A <newname> |
    | | ^b :rename-window <newname> | |
    | re-attach an attached session (detaching it from elsewhere) | tmux attach -d OR<br>tmux attach-session -d | screen -dr |
    | re-attach an attached session (keeping it attached elsewhere) | tmux attach OR<br>tmux attach-session | screen -x |
    | detach from currently attached session | ^b d OR<br>^b :detach | ^a ^d OR |
    | rename-window to newname | ^b , <newname> OR<br>^b :rename-window <newname> | ^a A <newname> |
    | 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 | screen -ls |
    | | tmux ls OR | |
    | | tmux list-sessions | |
    | list sessions | ^b s OR<br>tmux ls OR<br>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) | |
    | kill the current pane | ^b x OR<br> (logout/^D) | |
    | close other panes except the current one | ^b ! | |
    | swap location of panes | ^b ^o | |
    | show time | ^b t | |
  10. @P7h P7h revised this gist Oct 24, 2014. 1 changed file with 1 addition and 4 deletions.
    5 changes: 1 addition & 4 deletions tmux_vs_screen.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,6 @@
    | *Action* | *tmux* | *screen* |
    |:--------------------------------------------------------------|:----------------------------|:----------------------------------------------|
    | start a new session | tmux OR <br>tmux new OR | screen |
    | | tmux new OR | |
    | | tmux new-session | |
    | start a new session with a name | tmux new -s name | screen -S name |
    | start a new session | tmux OR<br>tmux new OR<br>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 | screen -r |
    | | tmux attach-session | |
    | re-attach a detached session with a name | tmux attach -t name | screen -r name |
  11. @P7h P7h revised this gist Oct 24, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions tmux_vs_screen.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    | *Action* | *tmux* | *screen* |
    |:-------------------------------------------------------------|:---------------------------|:---------------------------------------------|
    | start a new session | tmux OR | screen |
    |:--------------------------------------------------------------|:----------------------------|:----------------------------------------------|
    | start a new session | tmux OR <br>tmux new OR | screen |
    | | tmux new OR | |
    | | tmux new-session | |
    | start a new session with a name | tmux new -s name | screen -S name |
  12. @P7h P7h revised this gist Oct 24, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tmux_vs_screen.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    | *Action* | *tmux* | *screen* |
    |:-------------------------------------------------------------:|:---------------------------:|:---------------------------------------------:|
    |:-------------------------------------------------------------|:---------------------------|:---------------------------------------------|
    | start a new session | tmux OR | screen |
    | | tmux new OR | |
    | | tmux new-session | |
  13. @P7h P7h created this gist Oct 24, 2014.
    41 changes: 41 additions & 0 deletions tmux_vs_screen.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,41 @@
    | *Action* | *tmux* | *screen* |
    |:-------------------------------------------------------------:|:---------------------------:|:---------------------------------------------:|
    | start a new session | tmux OR | screen |
    | | tmux new OR | |
    | | tmux new-session | |
    | start a new session with a name | tmux new -s name | screen -S name |
    | re-attach a detached session | tmux attach OR | screen -r |
    | | tmux attach-session | |
    | 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 | screen -dr |
    | | tmux attach-session -d | |
    | re-attach an attached session (keeping it attached elsewhere) | tmux attach OR | screen -x |
    | | tmux attach-session | |
    | detach from currently attached session | ^b d OR | ^a ^d OR |
    | | ^b :detach | ^a :detach |
    | rename-window to newname | ^b , <newname> OR | ^a A <newname> |
    | | ^b :rename-window <newname> | |
    | 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 | screen -ls |
    | | tmux ls OR | |
    | | tmux list-sessions | |
    | 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 ] |