list and close tmux or screen sessions
See the terminal sessions left running, join one, or end them.
processesshell
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.
keep a command running after logout
Start a long job so it survives closing the terminal or the ssh session, and come back to it.
add a folder to the path
Let the shell find programs in a folder, for good, and reload the settings without logging out.
add to the end of a file
Add 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.