2

What's the difference between nohup foocommand and nohup foocommand &?

I understand that & marks the task/job/process as running in the background but does that make it more resilient than it would otherwise be?

What happens in both scenarios if my SSH session timeouts or if I get disconnected?

Mike B
  • 8,900

1 Answers1

2

The only difference is that the second form put your task into background immediately.

In both cases the process would not terminate if your ssh session get disconnected

Serge
  • 8,541