Skip to content

Instantly share code, notes, and snippets.

@j6k4m8
Created July 16, 2020 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j6k4m8/d0bf9d3cf8c998ea204e5b8f9d771f6e to your computer and use it in GitHub Desktop.
Save j6k4m8/d0bf9d3cf8c998ea204e5b8f9d771f6e to your computer and use it in GitHub Desktop.
using tmux

new session

the first time after boot, start a new tmux session:

tmux

(it's working if your shell has a green bar at the bottom)

detach from the session (leave it running in the background)

ctrl+B D

(you can go take a nap here, or turn off your laptop, or whatever)

reattach to a session

to reattach, type the following (do NOT run this if you see the green bar; in that case, you're already attached!)

tmux a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment