High Quality Content by WIKIPEDIA articles! In computing, wait is a command which pauses until execution of a background process has ended. USage: wait [n] where n is the pid or job ID of a currently executing background process (job). IF n is not given, the command waits until all jobs known to the invoking shell have terminated. Wait normally returns the exit status of the last job which terminated. IT may also return 127 in the event that n specifies a non-existent job or zero if there were no jobs to wait for. BEcause wait needs to be aware of the job table of the current shell execution environment, it is usually implemented as a shell builtin. EXample:This command can be useful where part of a script can execute in parallel to implement a barrier where an upcoming section depends on the successful completion of the preceding sections. THe following example will fetch the src/ directory from a machine named iona using rsync and simultaneously update the libraries on which this program depends, before building the combination.