Archeofuturist
Archeofuturist

Reputation: 215

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.

Upvotes: 0

Views: 996

Answers (1)

Roberto Bermudez
Roberto Bermudez

Reputation: 43

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

Upvotes: 2

Related Questions