Giter Site home page Giter Site logo

cheatsheet-tmux-a4's Introduction

1 Tmux CheatSheet

linkedin
github
slack


PRs Welcome

File me Issues or star this repo.

1.1 Tmux Basic

NameComment
Create new sessiontmux new -s denny
List all sessionstmux ls
Attach to one sessiontmux attach -t denny
Detach sessionC-b d
Kill one sessiontmux kill-session -t denny
List all shortcut keysC-b :list-keys, C-b ? Very useful!
Kill current windowC-b &
Default conf file~/.tmux.conf, ~/.tmate.conf

1.2 Tmux Layout & Scroll

NameComment
Switch to next paneC-b o
Vertically split paneC-b %
Horizontally split paneC-b "
Kill current paneC-b x
Swap two panesC-b C-o
Resize current pane rightC-b :resize-pane -R 20
Resize current pane downC-b :resize-pane -D 10

1.3 Tmux Console Output

NameComment
Enter copy modeC-b [, press q/Esc to exit
Search outputC-b C-s, C-b C-u
Paste buffer to current panelC-b ]
Page up/downEnter copy mode, then use normal navigation keys
Page up/down in MacFn + Up Arrow
Show things in current buffertmux show-buffer
List all buffertmux list-buffers
Save buffer to filetmux save-buffer foo.txt

1.4 Tmate

NameComment
see tmate log messages: ssh conn stringtmate show-messages
Launch tmate in a detached statetmate -S /tmp/tmate.sock new-session -d
Blocks until the SSH connection is establishedtmate -S /tmp/tmate.sock wait tmate-ready
Prints tmate SSH connection stringtmate -S /tmp/tmate.sock display -p '#{tmate_ssh}'
Make your tmate session big by defaultMake your default iterm window big

1.5 More Resources

https://gist.github.com/MohamedAlaa/2961058

https://wiki.freebsdchina.org/software/t/tmux

https://robots.thoughtbot.com/a-tmux-crash-course

https://gist.github.com/Bekbolatov/6840069e51382965fdad

License: Code is licensed under MIT License.

linkedin github slack

cheatsheet-tmux-a4's People

Contributors

dennyzhang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.