If I putty a Linux server, and doing some processes (For example, copying files), and when the connection drop, what will happen? Will the copying files continue or it is interrupted?
Asked
Active
Viewed 453 times
1 Answers
7
If you ssh to a linux server and the connection drops then the process you were running will get a signal to stop. (Usually signal SIGHUP, from the old time you connected via a modem and it hung up).
That means the processes will stop.
(In the same way as things will stop on windows when you log out)
If you do not want them to stop then you can:
- Tell the process to ignore the hangup signal.
Examplenohup make bzimage & - Or run the command in
screenand detach screen. - Or run the command in
tmux.