mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
27 lines
564 B
Plaintext
27 lines
564 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# wait
|
|
|
|
> Wait for a process to complete before proceeding.
|
|
> See also: `ps`, `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`
|