setsid how to keep commands running after exiting shell prompt

If you need to run any program or command, and then leave the shell session or ssh session, but be sure to leave the command running behind you, then you can use setsid. I know you are going to mention screen and nohup, and yes they are maybe better options, but setsid is another option.…