Skip to content

Instantly share code, notes, and snippets.

@gregtoth
gregtoth / tmux-cheatsheet.md
Last active January 30, 2022 09:52
Tmux Cheatsheet

Tmux Cheatsheet

Tmux is a "terminal multiplexer" that makes it much easier to run multiple programs over a single ssh session. It lets you create multiple virtual terminals within a single ssh login, allowing you to easily flip between each virtual terminal. Each virtual terminal works like a regular terminal but has the added benefit that if you lose the overall ssh session you can log back in and re-attach to the tmux session and all your virtual terminals are still there where you left off. This also allows you to start one or more programs within virtual terminals, detach the tmux session, logout your ssh session, login via ssh a some point in the future, re-attach to your tmux session, and all your previous virtual terminals are exactly where you left off. Programs you run in virtual terminals continue to run while you're detached and/or while you're logged out all-together.

Shell cmd Action
tmux Start tmux
tmux ls Show existing tmux sessions
tmux attach Re-attach to last active
@gregtoth
gregtoth / rpi-gpio-pinout.md
Last active April 26, 2016 15:31
Raspberry Pi GPIO Connector Pinout

Raspberry Pi GPIO Connector Pinout

Alt Func Func Pin Pin Func Alt Func
3.3V 1 2 5V
I2C SDA GPIO 2 3 4 5V
I2C SCL GPIO 3 5 6 GND
GPIO 4 7 8 GPIO 14 TXD UART
GND 9 10 GPIO 15 RXD UART
GPIO 17 11 12 GPIO 18 PCM CLK