2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-19 03:25:44 +00:00
cheat.sheets/sheets/xattr
Igor Chubin f1971eda08 xattr
2017-06-04 20:47:44 +00:00

19 lines
447 B
Plaintext

# xattr
#
# Utility to work with extended filesystem attributes.
# List key:value extended attributes for a given file:
xattr -l file
# Write an attribute for a given file:
xattr -w attribute_key attribute_value file
# Delete an attribute from a given file:
xattr -d attribute_key file
# Delete all extended attributes from a given file:
xattr -c file
# Recursively delete an attribute in a given directory:
xattr -rd attribute_key directory