xattr

अनुमतियाँ

इस्तेमाल

xattr -l [file]

macOS पर विस्तारित गुण पढ़ता और हटाता है, अक्सर com.apple.quarantine, जो app के क्षतिग्रस्त होने की चेतावनी की असली वजह है; Linux में getfattr और setfattr चलते हैं।

आम विकल्प

विकल्पअर्थ
-lList the attributes with their values
-pPrint one named attribute
-wWrite one named attribute
-dDelete one named attribute
-cClear every attribute on the file
-rWork through a directory recursively

उदाहरण

xattr -l installer.dmg

Shows com.apple.quarantine on anything downloaded.

xattr -d com.apple.quarantine /Applications/App.app

Clears the flag behind the damaged app warning.

xattr -cr ./MyApp.app

Strips every attribute through the whole bundle.

संख्या मोड और अक्षर मोड एक ही चीज़ कहते हैं: 755 और u=rwx,go=rx एक ही अनुमति है।

कैसे पढ़ें

  • बड़े कोष्ठक [ ] उस हिस्से को दिखाते हैं जिसे छोड़ा जा सकता है।
  • तीन बिंदु … का मतलब है एक से ज़्यादा दिए जा सकते हैं।
  • विकल्पों में बड़े-छोटे अक्षर मायने रखते हैं — कुछ कमांड में -r और -R अलग काम करते हैं।

आम सवाल

Q. xattr क्या करता है?

macOS पर विस्तारित गुण पढ़ता और हटाता है, अक्सर com.apple.quarantine, जो app के क्षतिग्रस्त होने की चेतावनी की असली वजह है; Linux में getfattr और setfattr चलते हैं।

Q. इसे कैसे लिखें?

xattr -l [file] — बड़े कोष्ठक वह हिस्सा दिखाते हैं जो छोड़ा जा सकता है।

Q. कितने विकल्प जानने लायक़ हैं?

यहाँ 6 दिए हैं; पूरी सूची man xattr में है। यह कमांड अनुमतियाँ में आती है।

मिलती-जुलती कमांड

man पेज: man xattr