sleep (pause)

Waits a specified amount of time before executing the next command. Often used in shell scripts.

Format:    sleep n units
Examples:  sleep 10
           sleep 2 m

When no units are included, seconds are assumed. The first example waits 10 seconds. The units that can be used are: s = seconds, m = minutes, h = hours, or d = days.

Get Spring Into Linux® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.