🖥️xattr

➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the xattr command with important options and switches using examples.

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

#  ██╗  ██╗ █████╗ ████████╗████████╗██████╗ 
#  ╚██╗██╔╝██╔══██╗╚══██╔══╝╚══██╔══╝██╔══██╗
#   ╚███╔╝ ███████║   ██║      ██║   ██████╔╝
#   ██╔██╗ ██╔══██║   ██║      ██║   ██╔══██╗
#  ██╔╝ ██╗██║  ██║   ██║      ██║   ██║  ██║
#  ╚═╝  ╚═╝╚═╝  ╚═╝   ╚═╝      ╚═╝   ╚═╝  ╚═╝

# 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
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░