getfacl

अनुमतियाँ

इस्तेमाल

getfacl [path]

स्वामी, समूह और अन्य से अलग जुड़ी पहुँच-सूची छापता है; यह acl पैकेज वाले Linux की चीज़ है, जबकि macOS अपनी तरह की ACL ls -le से दिखाता है।

आम विकल्प

विकल्पअर्थ
-RWalk a whole tree
-dShow the default ACL that new files will inherit
-aShow only the ACL of the file itself
--omit-headerLeave out the three comment lines
-ePrint the effective rights after the mask is applied

उदाहरण

getfacl report.pdf

The ACL plus the ordinary owner and group bits.

getfacl dir | setfacl --set-file=- other_dir

Copies one ACL onto another directory.

ls -le report.pdf

How 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