I need to find a file belonging to a specific user. I have tried using -O "userName" but, it prints: The -O option must be immediately followed by a decimal integer. I tried it with small 'o' and still, it wouldn't work
For searches based on the file owner, you should use the -user
option.
find /path/to/some/folder -user exampleuser
The -O
option is used for search optimization and is followed by an integer (1 to 3 levels).
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.