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