Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I'd like to view output of big commands slowed down, like a slideshow with e.g. automatic, 500ms delay between each scroll. What is the simplest way to achieve this?

share|improve this question
up vote 3 down vote accepted

A simple solution using bash:

function scroll
    while read -r ; do echo $REPLY ; sleep ${1:-0.5} ; done


long_command | scroll [delay]

delay is optional and defaults to 0.5.

Exit with Ctrl+C

share|improve this answer

If you can live with 1s resolution, you could do tail -n +0 -f -s <seconds>.

share|improve this answer
The output from long_command is possibly generated in less than a second so there's no point in polling for its completeness every <interval> and indeed doesn't work for me. – cYrus Sep 10 '12 at 22:25

You could use vim with an appropriate mapping to achieve this:

vim -c 'map <S-f20> L:redraw<cr>:sleep 500m<cr><C-d><S-f20>' -c 'execute "normal \<S-f20>"' -

Ctrl-d scrolls half a page at a time, replace with 10j to scroll 10 lines at a time.

share|improve this answer

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.