Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)

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

1 Answer

0 votes
by (36.8k points)

I think you are looking for the watch command.

To know about Linux join the Linux course

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...