-
tmux
is superior toscreen
for many reasons, here are just some examples: - Windows can be moved between session and even linked to multiple sessions
- Windows can be split horizontally and vertically into panes
- Support for UTF-8 and 256 color terminals
- Sessions can be controlled from the shell without the need to enter a session
-
You can now safely log off from the remote machine, your process will keep running inside
tmux
. When you come back again and want to check the status of your process you can usetmux attach
to attach to yourtmux
session.If you want to have multiple sessions running side-by-side, you should name each session using Ctrl+b and
$
. You can get a list of the currently running sessions usingtmux list-sessions
, now attach to a running session with commandtmux attach-session -t 0
.Basic Functionality
To get the same functionality as explained in the answer recommending
screen
, you would need to do the following: - ssh into the remote machine
- start
tmux
by typingtmux
into the shell - start the process you want inside the started
tmux
session - leave/detach the
tmux
session by typing Ctrl+b and then d
How to keep processes running after ending ssh session
最新推荐文章于 2023-01-09 17:43:06 发布