arrow_back Back to Notebook
bash
bash
June 16, 2019

How to pause a script in Bash

In order to make a script in Bash pause, sleep or wait for a period of time you need to use the command sleep

Using sleep in Bash

echo "hello"

sleep 60 ## this will sleep for 60 seconds

echo "after 60 sec"

Extra features

You can additionally specify the unit of time.

letter unit
s default seconds
m minutes
h hours
d days

Thanks for reading!

John Wiseman

Full-Stack Software Engineer building scalable digital solutions. specializing in modern web technologies and mission-critical systems.

© 2026 Wiseman Systems Pty. Ltd.

Navigation

Start a Conversation

Ready to discuss your next project? Let's build something extraordinary together.

Get in Touch