run a script in background linux code example Example 1: linux run task in background [command] 2> /dev/null & Example 2: background script linux $ nohup serve -s build -l 8080 &