cmdxray / commands / chmod

What does chmod do?

change file mode (permission) bits.

▸ Explain your own chmod command →

chmod examples, explained

$ chmod -R 755 dir

  • chmodchange file mode (permission) bits
  • -Rapply changes recursively
  • 755permissions rwxr-xr-x — owner rwx, group r-x, other r-x
  • diran argument passed to the command

$ chmod -v 600 key

  • chmodchange file mode (permission) bits
  • -vverbose — report each change
  • 600permissions rw------- — owner rw-, group ---, other ---
  • keyan argument passed to the command

chmod flags & options

-Rapply changes recursively
-vverbose — report each change
-creport only files that actually change
-fsuppress 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.