TIL about the command `nohup`
Source: Dev.to
What is nohup?
nohup stands for “no hang up”. It runs a process immune to the SIGHUP signal. When you close a terminal or log out, the shell normally sends SIGHUP to all running processes, causing them to terminate. Using nohup prevents this, allowing processes to continue running after the terminal is closed.
Example usage
nohup n8n start > n8n.log 2>&1 &
nohupprefixes the command to make it immune toSIGHUP.> n8n.logredirects stdout to the filen8n.log.2>&1redirects stderr to the same destination as stdout.- The trailing
&runs the command in the background.