How do I find new files in Linux?
Answer
Get most recent file in a directory on Linux
Answer
Get most recent file in a directory on Linux
- watch -n1 ‘ls -Art | tail -n 1’ – shows the very last files – user285594 Jul 5 ’12 at 19:52.
- Most answers here parse the output of ls or use find without -print0 which is problematic for handling annoying file-names.