Contents
wait is an inbuilt command in the Linux shell. It waits for the process to change its state i.e. it waits for any running process to complete and returns the exit status. Syntax: wait [ID]
What is the wait command in Unix?
In Unix shells, wait is a command which pauses until execution of a background process has ended.
What is wait command in bash?
wait is a command that waits for the given jobs to complete and returns the exit status of the waited for command. Since the wait command affects the current shell execution environment, it is implemented as a built-in command in most shells.