Linux Commands - find files owned by user

by
Jeremy Canfield |
Updated: August 16 2023
| Linux Commands articles
The find command with the -user option can be used to return all files and directories owned by a specific user. In this example, all files and directories below /tmp owned by john.doe will be returned.
find /tmp -user john.doe
In this example, all files and directories below /tmp not owned by john.doe will be returned.
find /tmp ! -user john.doe
Did you find this article helpful?
If so, consider buying me a coffee over at