XCYS

  • Home
  • XueWen
  • Computer
  • Hiking
  • ACGN
  • About
  • Table of Contents
  • Overview

Xingchengyusi

14 posts
1 categories
23 tags

Tmux Shortcut

Posted on 2022-12-17 Edited on 2022-12-23 In computer

start new:

tmux

start new with session name:

tmux new -s myname

attach:

tmux a  #  (or at, or attach)

attach to named:

tmux a -t myname

list sessions:

tmux ls

kill session:

tmux kill-session -t myname

Kill all the tmux sessions:

tmux ls | grep : | cut -d. -f1 | awk '{print substr($1, 0, length($1)-1)}' | xargs kill

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

# terminal # tmux # shortcut # remote
Testing
Tips About Join
© 2023 Xingchengyusi
Powered by Hexo & NexT.Mist
0%