I needed to see the changes to a folder in realtime and after a bit of looking around, i’ve found this solution:
watch -d -n 1 'df; echo " "; echo "Local folder updates:"; ls -FIAt;'
If you want to refresh at longer intervals (not 1s as it is now) all you have to do is change the value of the -n parameter as so:
watch -d -n 10 'df; echo " "; echo "Local folder updates:"; ls -FIAt;'
This will show you the changes to the current folder every 10s.
The post Real time folder monitoring in CLI Linux appeared first on My Science Is Better.