从目录树中删除所有扩展属性

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了从目录树中删除所有扩展属性相关的知识,希望对你有一定的参考价值。

The space after the caret in the grep command is produced by typing Ctrl-V and then Tab, to insert a Tab character.
  1. for i in $(ls -Rl@ | grep '^ ' | awk '{print $1}' | sort -u); do echo echo Removing $i ... >&2; find . -print0 | xargs -0t xattr -d $i 2>/dev/null ; done

以上是关于从目录树中删除所有扩展属性的主要内容,如果未能解决你的问题,请参考以下文章