chmod [options] mode file...Arguments explained
- mode can be numeric like 755 or symbolic like u+x.
- file is one or more paths.
- -R applies recursively.
Common examples
chmod u+x script.shAdds execute permission for the file owner.
chmod 644 index.htmlOwner can write; everyone can read.
| Field | Details |
|---|---|
| Command | chmod |
| Category | Permissions and Ownership |
| Primary use | Changes file mode permissions. |
| Syntax | chmod [options] mode file... |