Forrest logo
back to the set tool

set:tldr:68747

set: Notify of job termination immediately.
$ set -b
try on your machine

The command "set -b" is used in shell scripting to enable job control and allow running processes to be stopped and resumed using signals.

Here's a breakdown of what each part of the command means:

  • "set" is a built-in command in Unix-like systems that allows you to change the current shell settings or display the current settings.
  • "-b" is an option or flag used with the "set" command. In this case, it stands for "notify of background job completion immediately."

By executing the "set -b" command, you are instructing the shell to notify you immediately when a background job completes. Normally, without this option, the shell waits for the command prompt to be displayed before notifying you of finished background jobs.

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 set tool