$ ./guess_the_languageLinux CLI
Linux CLI · medium · #30

What does nohup add here?

nohup ./server.sh > server.log &
  1. It keeps running after you log out
  2. It runs the script with root privileges
  3. It restarts the script on crash
  4. It blocks all output to the log
nohup makes the command ignore SIGHUP, the hang-up signal sent when the terminal session closes.
Play Linux CLI ▸