Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I make my shell script pause before continuing?

share|improve this question
instead of assuming it doesn't exist, maybe you should assume you were unable to find it? – Kim Mar 14 '11 at 17:37
up vote 9 down vote accepted

You mean sleep? Or do you want to have something that waits for input before continuing? You can do that with a read call.

share|improve this answer
read is what I was looking for! Unfortunately, it's not present in my embedded system (using busybox).. :( – Tom Brito Mar 14 '11 at 20:56
@Tom Brito: read is a shell builtin; you won't find it in /bin. Does it really not work in your busybox shell? (it works in mine, but I guess maybe its possible to compile busybox w/o it) – derobert Mar 14 '11 at 21:37
@derobert ops! yes, it's there! sorry – Tom Brito Mar 16 '11 at 19:46

He might also be looking for CTRL-Z, which pauses the current process.

share|improve this answer
not, I'm looking for a command line.. – Tom Brito Mar 14 '11 at 20:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.