Run Command in the Background

#codesnippet #shell

Useful with SSH

Non-Root

Reference

nohup <cmd_name> > stdout.log 2> stderr.err &

Root

Reference

nohup sudo -b <cmd_name> > stdout.log 2> stderr.err