Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Linux can I find files through the extended attributes I define? Since I can find files through its basic attributes like the file's type and others, I wonder if this is possible (because in Windows, defining extra atributes to files through Alternate Data Streams, it isn't possible to find them, at least using the Windows Search tool).

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The standard version of find that comes installed as part of any Linux system cannot do this. However, some time ago I wrote a patch allowing it to search by the presence of an extended attribute. So you can download that patch, apply it to the findutils source code, then compile and install your custom version of find, and you should be able to use it to find files by extended attribute. (The patch is for findutils 4.4.0, although it might also work on the latest version, 4.4.2. If you try it, I'd be interested to get any feedback.)

There are probably other search programs that do index extended attributes, but I don't know of any. It seems to be somewhat difficult to find information on them on Google.

share|improve this answer
    
Thanks I'll definitely give it a try :) –  ele Feb 2 at 13:00
    
About the search programs I actually couldn't find ANY information about their abilities to index extended attributes (if there even exists programs that even do that)... If anybody knows any search programs able to to this I appreciate if you inform me, I'll have a presentation soon and wouldn't like to say that doesn't exists programs that index extended attributes without being sure. Thanks again! –  ele Feb 2 at 13:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.