Is there a way to bring the process to foreground with linux?
I would like to have the program run in the background (nohup) on the server, log out once, log in again with ssh, and then display it in the foreground.
tmux
and screen
are often used to run the process in the foreground state when it continues and reconnects after disconnecting.
I will write down the method using tmux.Assume the setting is the default.
Start $tmux#tmux
$ some-long-command# some time-consuming command
...outputs...
At this time, enter Ctrl-b:detach
RET.You can now detach from the tmux session.
You can reconnect to tmux from tmux attach
.
© 2024 OneMinuteCode. All rights reserved.