Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Question

Status
Not open for further replies.

tcardoso

Programmer
Jan 31, 2005
56
PT
Hi,

How do I delete files that belong to a user or group.
I have a directory with files from 2 users, I want to delete only the ones from one user.

I looked into rm command and didn't see that option.

Thanks
 
find" is your friend! :)

find . -user foobar -exec rm {} \;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top