如何在ubuntu中找到修改过的文件

时间:2021-10-29 01:54:23

I want to find the details of the modified files such as size, permission and modified time in ubuntu and set the cron jobs in cpanel,i have used like this

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

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

and also like this

也喜欢这个

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

but it is not working .

但它不起作用。

Now I want all the details of the files modified .

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

1 个解决方案

#1


0  

try this :

试试这个 :

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

#1


0  

try this :

试试这个 :

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