Function: chmod

chmod is a function alias and interactive for set-file-modes, defined in fileio.c.

Signature

(chmod FILENAME MODE &optional FLAG)

Documentation

Set mode bits of file named FILENAME to MODE (an integer).

Only the 12 low bits of MODE are used. If optional FLAG is nofollow, do not follow FILENAME if it is a symbolic link.

Interactively, prompt for FILENAME, and read MODE with read-file-modes, which accepts symbolic notation, like the chmod command from GNU Coreutils.

Probably introduced at or before Emacs version 19.20.

Key Bindings

Aliases

tramp-compat-set-file-modes chmod