list and close tmux or screen sessions
See the terminal sessions left running, join one, or end them.
Steps
-
tmux lsthe tmux sessions
-
tmux attach -t NAMEjoin one
-
tmux kill-session -t NAMEend one
-
screen -lsthe screen sessions
-
screen -r NAMEjoin one
-
screen -X -S NAME quitend one, from outside
Commands used
tmuxscreen
Each has a page in lore: lore tmux opens it.
Related recipes
- keep a command running after logoutStart a long job so it survives closing the terminal or the ssh session, and come back to it.
- add a folder to the pathLet the shell find programs in a folder, for good, and reload the settings without logging out.
- add to the end of a fileAdd lines to a file without replacing it, also to a file only root can write.
- argument list too long"Argument list too long" from rm, cp or mv: too many files for one command line. Hand them over in batches.