Block until a background PID exits.
Section: Shell Job Control
Wait for PID in shell
bash
bash
wait 1234Explanation
Block until a background PID exits.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Shell Job Control
Resume stopped job in background
Continue a stopped job in the background.
Suspend current foreground job
Suspend the current foreground process group.