Run a process and write the output to a specific file

nohup

  • Allows for a process to live when the terminal gets killed.
    More information: <https://www.gnu.org/software/coreutils/nohup>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

nohup {{command}} {{command_arguments}} > {{path/to/output_file}} &

click the source code to copy install nohup on any operating system with command-not-found.com