> For the complete documentation index, see [llms.txt](https://cgo.gitbook.io/my-it-blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cgo.gitbook.io/my-it-blog/linux-1/linux-chang-yong-ming-ling.md).

# Linux常用命令

chgrp：更改文件属组\
语法：\
chgrp \[-R] 属组名 文件名\
参数选项： -R：递归更改文件属组，就是在更改某个目录文件的属组时，如果加上-R的参数，那么该目录下的所有文件的属组都会更改。\
\
chown：更改文件属主，也可以同时更改文件属组\
语法：\
chown \[–R] 属主名 文件名\
chown \[-R] 属主名：属组名 文件名\
\
chmod：更改文件9个属性\
Linux文件属性有两种设置方法，一种是数字，一种是符号。\
Linux文件的基本权限就有九个，分别是owner/group/others三种身份各有自己的read/write/execute权限。 例子：\
chmod 777 test1\
chmod u=rwx,g=rx,o=r test1\
chmod a-x test1


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cgo.gitbook.io/my-it-blog/linux-1/linux-chang-yong-ming-ling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
