chmod

    chmod command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.9
    License
    Apache-2.0
    Last updated
    14 hours ago
    Downloads
    224

    #chmod

    Set file permissions on POSIX hosts through MoonX.

    #Usage

    moonx cli/chmod 644 report.txt moonx cli/chmod u=rw,g=r,o= report.txt

    Use numeric modes, or complete symbolic assignments for regular files. Recursive numeric changes skip links encountered during traversal.

    #Common options

    OptionDescription
    -R, --recursiveProcess directory contents recursively.
    -v, --verboseDescribe processed entries.
    --helpShow help.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • Windows permission changes and --reference are unsupported.
    • Regular files accept symbolic expressions whose result is independent of their initial mode. For example, a=rw,u+x sets 0766 and u=rw,g=u,o= sets 0660. Explicit classes, permission copies, conditional execute and special bits are supported. A bare u+x still needs the existing bits.
    • Symbolic expressions require regular-file operands. Numeric modes can change directories.

    Build from source with the MoonBit 1.0 RC1 toolchain.

    See the compatibility guide for the supported profile.

    Source Files