getfacl
अनुमतियाँ
इस्तेमाल
getfacl [path]स्वामी, समूह और अन्य से अलग जुड़ी पहुँच-सूची छापता है; यह acl पैकेज वाले Linux की चीज़ है, जबकि macOS अपनी तरह की ACL ls -le से दिखाता है।
आम विकल्प
| विकल्प | अर्थ |
|---|---|
| -R | Walk a whole tree |
| -d | Show the default ACL that new files will inherit |
| -a | Show only the ACL of the file itself |
| --omit-header | Leave out the three comment lines |
| -e | Print the effective rights after the mask is applied |
उदाहरण
getfacl report.pdfThe ACL plus the ordinary owner and group bits.
getfacl dir | setfacl --set-file=- other_dirCopies one ACL onto another directory.
ls -le report.pdfHow macOS shows its own kind of ACL instead.
संख्या मोड और अक्षर मोड एक ही चीज़ कहते हैं: 755 और u=rwx,go=rx एक ही अनुमति है।
कैसे पढ़ें
- बड़े कोष्ठक [ ] उस हिस्से को दिखाते हैं जिसे छोड़ा जा सकता है।
- तीन बिंदु … का मतलब है एक से ज़्यादा दिए जा सकते हैं।
- विकल्पों में बड़े-छोटे अक्षर मायने रखते हैं — कुछ कमांड में -r और -R अलग काम करते हैं।
आम सवाल
Q. getfacl क्या करता है?
स्वामी, समूह और अन्य से अलग जुड़ी पहुँच-सूची छापता है; यह acl पैकेज वाले Linux की चीज़ है, जबकि macOS अपनी तरह की ACL ls -le से दिखाता है।
Q. इसे कैसे लिखें?
getfacl [path] — बड़े कोष्ठक वह हिस्सा दिखाते हैं जो छोड़ा जा सकता है।
Q. कितने विकल्प जानने लायक़ हैं?
यहाँ 5 दिए हैं; पूरी सूची man getfacl में है। यह कमांड अनुमतियाँ में आती है।
मिलती-जुलती कमांड
man पेज: man getfacl