add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

View File

@@ -1,36 +1,36 @@
# chmod
> 改文件或目录的访问权限。
> 更多信息:<https://www.gnu.org/software/coreutils/manual/html_node/chmod-invocation.html>.
> 改文件或目录的访问权限。
> 更多信息:<https://www.gnu.org/software/coreutils/manual/html_node/chmod-invocation.html>
- 授予所有者u执行x文件的权限
- 给予文件的拥有者[u]执行的权限[e]
`chmod u+x {{文件}}`
`chmod u+x {{path/to/file}}`
- 授予所有者ur和写w文件目录的权限:
- 给予用户[u]对文件/目录的[r]ead和[w]rite权限:
`chmod u+rw {{文件或目录}}`
`chmod u+rw {{path/to/file_or_directory}}`
- 移除用户组g的文件执行x权限
- 从[group]移除执行权限[e]
`chmod g-x {{文件}}`
`chmod g-x {{path/to/file}}`
- 予所有用户ar以及执行x文件的权限:
- 予所有用户[a]读取和执行[r]权限:
`chmod a+rx {{文件}}`
`chmod a+rx {{path/to/file}}`
- 予其他用户o不在所有者用户组和用户组g同样的权限:
- 予其他用户[o](不在文件拥有者组内)与[group]相同的权限:
`chmod o=g {{文件}}`
`chmod o=g {{path/to/file}}`
- 移除其他用户o所有权限:
- 移除所有权限从其他用户[o]
`chmod o= {{文件}}`
`chmod o= {{path/to/file}}`
- 递归授予用户组g和其他用户o目录下所有文件和子目录的写w权限:
- 递归更改权限,给予[group]和其他用户[o]写入权限:
`chmod -R g+w,o+w {{目录}}`
`chmod -R g+w,o+w {{path/to/directory}}`
- 递归予所有用户a目录下文件的读r权限和子目录的执行X权限:
- 递归予所有用户[a]对文件的读取权限和对目录内子目录的执行权限[e]
`chmod -R a+rX {{目录}}`
`chmod -R a+rX {{path/to/directory}}`