Skip to main content
Share Your Experience: Take the 2024 Developer Survey

chmod is used to change the commonly used read, write, and execute permissions on files. It can change these permission bits for the file owner, the file's group owner, and everyone else. It can also change the more esoteric ‘permissions’ (attributes, reall) like set-user-ID, set-group-ID, and sticky bits.

Change the file modes.

External reference

chmod specification (The Open Group Base Specifications Issue 7, 2018 edition)