cmdxray / commands / chattr

What does chattr do?

change ext2/3/4 file attributes, e.g. +i makes a file immutable.

▸ Explain your own chattr command →

chattr examples, explained

$ chattr -R +i logs/

  • chattrchange ext2/3/4 file attributes, e.g. +i makes a file immutable
  • -Rrecurse into directories
  • +ian argument passed to the command
  • logs/an argument passed to the command

$ chattr -V +a app.log

  • chattrchange ext2/3/4 file attributes, e.g. +i makes a file immutable
  • -Vbe verbose and print the program version
  • +aan argument passed to the command
  • app.logan argument passed to the command

chattr flags & options

-Rrecurse into directories
-Vbe verbose and print the program version
-fsuppress most error messages

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.