【问题标题】:how can i find the modified files in ubuntu如何在 ubuntu 中找到修改后的文件
【发布时间】:2013-04-29 16:26:02
【问题描述】:

我想在ubuntu中查找修改文件的大小、权限和修改时间等详细信息,并在cpanel中设置cron作业,我用过这样的

find /home1/sitename/public_html/ -type f -ctime -1 -exec ls -ls {}

也喜欢这样

find /home1/sitename/public_html/-type f -ctime -1 -exec ls -ls {} \;

但它不起作用。

现在我想要修改文件的所有细节。

【问题讨论】:

  • 使用-mtime而不是-ctime如果你真的也想监控权限,你可以使用-ctime -1 -o -mtime -1

标签: unix ubuntu cron


【解决方案1】:

试试这个:

find /home1/sitename/public_html/-type f -ctime -1 | xargs ls -ls

【讨论】:

    猜你喜欢
    • 2011-01-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-05-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多