Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
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
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.6k users

Browse Categories

...