简体   繁体   中英

find command in Linux to identify any file (not directory) modified in the last day, and not owned by root

So far I am trying :

find / -mtime -1 -print ! -user root

However it doesn't seem to work. Any advice would be welcome.

If you want to constraint your search to file entries you must add the parameter -type

Should be something like this:

find / -mtime -1 -print ! -user root -type f

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM