How to find files owned by a user
Hi Guys,
Is there any command to find all the files owned by a particular user.. |
You can use the find command to do just that:
Code:
find / -user <username> |
This will find files owned by user arnold on the system (you may need to run with root permissions to find all of them).
find / -user arnold 2>/dev/null It's worth checking out find's man page - it's quite powerful. |
how do i copy all those files to a directory?
|
Quote:
Code:
cp `find / -user <username>` /some/destination |
All times are GMT -5. The time now is 11:31 PM. |