Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

bg - run jobs in the background

&pagelevel(4)&pagelevel

You can use the built-in command bg in the POSIX shell sh to specify jobs for background processing.


Syntax


bg[ job-id ...]

job-id

Each specified job is held for background processing. The section “Jobs” describes the format of job-id.

job-id not specified:
The current job is specified for background processing.

Locale

The following environment variables have an effect on the execution of bg:

LANG

Specifies a default value for the locale variable that is unset or null. If LANG is unset or null, the corresponding locale default value is used. If the locale variable contains an invalid setting, locale behaves as if no variables had been set.

LC_ALL

If this value is set, i.e. is not empty, this value overwrites the values of all other locale variables.

LC_CTYPE

Determines the locale for the interpretation of byte sequences as characters (e.g. single-byte as opposed to multibyte characters in arguments).

LC_MESSAGES

Determines the format and content of error messages.

NLSPATH

Determines the position of the message catalog for the processing of LC_MESSAGES.

Example

You wish to specify job %1 for background processing:

$ bg %1

See also

fg, jobs, kill, wait