Can I use find to find all files which have extended attributes set? Let's say, I want to find all files with +i, immutable attribute in /foo and its subfolders.
I could not find any, mention of extended attributes in man find.
Is there any other way to find all files with attributes
I am using Debian Wheezy
findmethod. The link to Gille's answer is this one. – Ramesh Oct 15 '14 at 20:56find(the same that comes with Mac OS) has both-xattrand-xattrnameoptions to deal with extended attributes. To find files that have extended attributes set you can just use something likefind . -xattr -exec xattr -v {} \;. Use-xattrnameto search for specific attributes. – Claudio Floreani Oct 07 '16 at 09:49find ~/some-path/ -xattrname com.apple.FinderInfo -exec xattr -d com.apple.FinderInfo {} \;– Benno Jan 08 '18 at 07:45-xattrin any manpage from MacOS, FreeBSD or OpenBSD. – Artefact2 Aug 29 '18 at 13:11rh / immutable. To find files with a particular extended attribute (name or value) dorh / '"*pattern*".ea'. It's at https://github.com/raforg/rawhide. – raf Aug 29 '23 at 03:25