Linux command to check new files in file system

前端 未结 4 1969
栀梦
栀梦 2021-01-31 10:08

We have linux machine we would like to check what new files have been added between a certain date range.

I only have SSH access to this box and it\'s openSUSE 11.1

4条回答
  •  花落未央
    2021-01-31 10:51

    Well, you could use find to get a list of all the files that were last-modified in a certain time window, but that isn't quite what you want. I don't think you can tell just from a file's metadata when it came into existence.

    Edit: To list the files along with their modification dates, you can pipe the output of find through xargs to run ls -l on all the files, which will show the modification time.

    find /somepath -type f ... -print0 | xargs -0 -- ls -l
    

提交回复
热议问题