Search code examples
bashshellwaitsleep

Difference between wait and sleep


What is difference between wait and sleep?


Solution

  • wait waits for a process to finish; sleep sleeps for a certain amount of seconds.