In Linux to find files not owned by user using the ‘find’ command we negate with the exclamation mark so rather than:
find . -user jonny
we use:
find . ! -user jonny
Where:
find <dir> ! -user <username>
Red Branch | For Future Reference …
In Linux to find files not owned by user using the ‘find’ command we negate with the exclamation mark so rather than:
find . -user jonny
we use:
find . ! -user jonny
Where:
find <dir> ! -user <username>