Skip to main content
added 273 characters in body
Source Link
alpha
  • 2k
  • 12
  • 21

You can use the & to start multiple background jobs.

Example to run sequentially:

(command1 ; command2) & 

Or run multiple jobs in parallel

command1 & command2 & 

thisThis will start multiple jobs running in the background.

If you want to keep a job running in the background, once you exit the terminal you can use nohup. This will ensure that SIGHUP, is not sent to a process once you exit the terminal.

example:

nohup command & 

You can use the & to start multiple background jobs.

Example to run sequentially:

(command1 ; command2) & 

Or run multiple jobs in parallel

command1 & command2 & 

this will start multiple jobs running in the background.

You can use the & to start multiple background jobs.

Example to run sequentially:

(command1 ; command2) & 

Or run multiple jobs in parallel

command1 & command2 & 

This will start multiple jobs running in the background.

If you want to keep a job running in the background, once you exit the terminal you can use nohup. This will ensure that SIGHUP, is not sent to a process once you exit the terminal.

example:

nohup command & 
Source Link
alpha
  • 2k
  • 12
  • 21

You can use the & to start multiple background jobs.

Example to run sequentially:

(command1 ; command2) & 

Or run multiple jobs in parallel

command1 & command2 & 

this will start multiple jobs running in the background.