How to Sleep in Shell Script May 18th, 2014 Sometimes you will need to pause execution for a specific period within a shell script. To do that, you will need to use the sleep command to delay for a specified amount of time in seconds, minutes, hours or days.