> For the complete documentation index, see [llms.txt](https://zeliang-yao.gitbook.io/my-note-zeliang-yao/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zeliang-yao.gitbook.io/my-note-zeliang-yao/linux/chmod.md).

# Chmod

| Case                                                                                                         | command            |
| ------------------------------------------------------------------------------------------------------------ | ------------------ |
| To give read and write permissions to the owner of a file, and read-only permissions to everyone else        | `chmod 644 [FILE]` |
| To give read, write, and execute permissions to the owner, and read and execute permissions to everyone else | `chmod 755 [FILE]` |
| To give read, write, and execute permissions to the owner, and no permissions to everyone else               | `chmod 700 [FILE]` |
| To give read and execute permissions to the owner, and read-only permissions to everyone else                | `chmod 744 [FILE]` |
