xattr
अनुमतियाँ
इस्तेमाल
xattr -l [file]macOS पर विस्तारित गुण पढ़ता और हटाता है, अक्सर com.apple.quarantine, जो app के क्षतिग्रस्त होने की चेतावनी की असली वजह है; Linux में getfattr और setfattr चलते हैं।
आम विकल्प
| विकल्प | अर्थ |
|---|---|
| -l | List the attributes with their values |
| -p | Print one named attribute |
| -w | Write one named attribute |
| -d | Delete one named attribute |
| -c | Clear every attribute on the file |
| -r | Work through a directory recursively |
उदाहरण
xattr -l installer.dmgShows com.apple.quarantine on anything downloaded.
xattr -d com.apple.quarantine /Applications/App.appClears the flag behind the damaged app warning.
xattr -cr ./MyApp.appStrips 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