Linux and Unix wait command

Quick links

About wait
Syntax
Examples
Related commands
Linux and Unix main page

About wait

Await process completion.

Syntax

wait [pid] [jobid]

pidThe unsigned decimal integer process ID of a command, for which the utility is to wait for the termination.
jobidA job control job ID that identifies a background process group to be waited for. The job control job ID notation is applicable only for invocations of wait in the current shell execution environment, and only on systems supporting the job control option.

Examples

wait 2017 - Wait on pid 2017 until termination

Related commands

csh
jobs
ksh
sh