Home > linux > Repeat command every 10 seconds in Linux shell

Repeat command every 10 seconds in Linux shell

If you want to repeat “uptime” every 10 seconds in Linux shell, you can type

while x=1;do uptime;sleep 10;done

it also works for other shell commands, just replace “uptime” with what you need

Categories: linux Tags:
  1. No comments yet.
  1. No trackbacks yet.
Orange Cabin