Skip to content

Instantly share code, notes, and snippets.

@imam-san
Created January 2, 2018 07:23
Show Gist options
  • Save imam-san/31bb6ad94a72e39971c1270b4255525d to your computer and use it in GitHub Desktop.
Save imam-san/31bb6ad94a72e39971c1270b4255525d to your computer and use it in GitHub Desktop.
# redirect output and errors into file output.log:
nohup some_command > output.log 2>&1&
# abbreviated syntax for bash version >= ver.4:
nohup some_command &> output.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment