Forrest logo
back to the bg tool

bg:tldr:f0e08

bg: Resume a specific job (use `jobs -l` to get its ID) and run it in the background.
$ bg %${job_id}
try on your machine

The command "bg %${job_id}" is used to push a suspended job to the background.

Here's a breakdown of the command:

  • "bg" is a built-in command in Unix-like operating systems that is used to resume a suspended job and run it in the background.
  • "%" is a shell operator used to refer to a specific job by its job ID.
  • "${job_id}" is a placeholder that should be replaced with the actual job ID you want to push to the background.

So, essentially, this command takes a specific job identified by its job ID and resumes it, allowing it to continue running in the background.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the bg tool