If I have a command that each time gives me an output. How I can do it to refresh my output every 2 seconds, for example?. I think this command will work.
Example:
cat /proc/mdstat
[======>..............] resync = 30.8% (150544832/488383936) finish=65.8min speed=85472K/sec
othercommand cat /proc/mdstat