[arch-general] How to find files owned by some user or group?

Ralph Corderoy ralph at inputplus.co.uk
Thu Dec 13 09:28:03 UTC 2018


Hi Peter,

> how can I find all the files owned by some user or group (in
> preparation to delete the user/group)?

find(1).
See https://wiki.archlinux.org/index.php/Find#Essentials

    sudo find /start1 /start2 \( -user foo -o -group bar \) -ls

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy


More information about the arch-general mailing list