wait
Wait for a process to complete before proceeding. tldr-pages
On several platforms
Several platforms
Wait for a process to finish given its process ID and return its exit status
wait process_idIdentifyWait for all processes known to the invoking shell to finish
waitIdentifyWait for one of the processes to finish
wait -nIdentifyWait for one of the processes to finish and store its PID in a variable
wait -n -p variableIdentifyWait for a job to finish (run jobs to find the job number)
wait %job_numberIdentifyDisplay help
wait --helpIdentify