1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 17:55:24 +02:00
tldr/pages/common/wait.md

22 lines
466 B
Markdown
Raw Normal View History

2016-05-23 15:46:41 -04:00
# wait
> Wait for a process to complete before proceeding.
> See also: `ps` to view information about running processes.
> More information: <https://manned.org/wait>.
2016-05-23 15:46:41 -04:00
2016-08-09 10:58:49 +01:00
- Wait for a process to finish given its process ID (PID) and return its exit status:
2016-05-23 15:46:41 -04:00
`wait {{pid}}`
- Wait for all processes known to the invoking shell to finish:
`wait`
2024-10-12 08:49:27 +03:00
- Wait for a job to finish (run `jobs` to find the job number):
2024-10-12 08:49:27 +03:00
`wait %{{job_number}}`
2025-03-26 00:36:41 +02:00
- Display help:
`wait --help`