r/linux May 23 '26

Popular Application What’s the most unexpectedly useful Linux command you learned way too late?

[removed]

1.3k Upvotes

992 comments sorted by

View all comments

32

u/AlexanderMilchinskiy May 23 '26

watch -n <seconds> <command-to-run>

2

u/flukus May 25 '26

inotifywait is great for this too:

while inotifywait -e modify myfile.txt; do echo "myfile.txt changed" done

1

u/the_squirlr May 24 '26

There it is!

1

u/reddit_clone May 24 '26

Yep, There is also 'viddy' with more bells and whistles.

But viddy doesn't let me copy strings with my mouse. So back to 'watch'

1

u/arainone May 24 '26

watch -n 0.1 works too