When a directory contains some files with non-empty extended attributes, all the attribute values can be shown as follows:
$ getfattr -d * # file: file1 user.comment="comment1" # file: file2 user.comment="comment2"
This should work for all the Linux distributions.
Is it possible to list only the files whose
user.comment extended attribute has a specific value, for example
comment1? If yes, how?