If you are a Linux user, you must know nohup command. If you don’t now, this GIF should be suffice.
Usually when you close your terminal, the shell would send a SIGHUP signal to all processes(only after terminal receives SIGHUP from kernel) attached to it. So that processes get to know that the controlling terminal has exited and they should also exit. But if put nohup command in the front of your script, it act as a armour for your process. nohup command ignores SIGHUP signal, so your process continues to run. As a side note, daemons act differently to the SIGHUP signal.
Comment your thoughts below. Also subscribe to this blog so that you don’t miss out anything useful (Checkout Right Sidebar for the Subscription Form) 🙂