1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 13:53:52 +02:00
tldr/pages/common/wait.md
2025-08-25 19:15:26 -07:00

21 lines
518 B
Markdown

# wait
> Wait for a process to complete before proceeding.
> See also: `ps` to view information about running processes and `waitpid`.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-wait>.
- Wait for a process to finish given its process ID (PID) and return its exit status:
`wait {{pid}}`
- Wait for all processes known to the invoking shell to finish:
`wait`
- Wait for a job to finish (run `jobs` to find the job number):
`wait %{{job_number}}`
- Display help:
`wait --help`