0

I'm having minor trouble with getting my head around it cause none of the tried commands does not display anything. I would like to check file attributes of the every file in the folder (including subfolders and so on).

Let's assume I'm having a path: mainfolder/subfolder/file.txt - if I submit it directly like this:

getfattr -d /mnt/Users/Family/Documents/credentials.txt

It does the job and returns that there is some attribute. But now I'd like to search a whole folder like that for every file in every folder and subfolder. So I tried some of the ways of getting it but these returned nothing for me:

getfattr -d -m ^ -R -- <filename or directory>
getfattr -m - $your_path_or_file_name

I'm not even sure if it's possible to list attributes like that in a recursive way. Can you help me out?

0

You can dump them and then use awk

getfattr --dump * > xfatrrts.txt

Here you will find some tricks (in Greek).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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