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

32
pages.zh/openbsd/cal.md Normal file
View File

@@ -0,0 +1,32 @@
# 日历
> 显示一个高亮当前日期的日历。
> 更多信息:<https://man.openbsd.org/cal>。
- 显示当前月份的日历:
`cal`
- 显示特定年份的日历:
`cal {{年份}}`
- 显示特定月份和年份的日历:
`cal {{月份}} {{年份}}`
- 显示当前 [年] 的日历:
`cal -y`
- 显示 [j]ulian 天数从1开始从1月1日开始编号
`cal -j`
- 使用 [m]onday 作为周的开始,而不是星期天:
`cal -m`
- 编号 [w] 周数(与 `-j` 不兼容):
`cal -w`

7
pages.zh/openbsd/chfn.md Normal file
View File

@@ -0,0 +1,7 @@
# chfn
> 这个命令是 `chpass` 的别名。
- 查看原始命令的文档:
`tldr chpass`

View File

@@ -0,0 +1,21 @@
# chpass
> 添加或更改用户数据库信息,包括登录 shell 和密码。
> 另见: `passwd`。
> 更多信息: <https://man.openbsd.org/chsh>。
- 以交互方式为当前用户设置特定的登录 shell
`doas chsh`
- 为当前用户设置特定的登录 [s]hell
`doas chsh -s {{path/to/shell}}`
- 为特定用户设置登录 [s]hell
`doas chsh -s {{path/to/shell}} {{username}}`
-`passwd` 文件格式中指定用户数据库条目:
`doas chsh -a {{username:encrypted_password:uid:gid:...}}`

7
pages.zh/openbsd/chsh.md Normal file
View File

@@ -0,0 +1,7 @@
# chsh
> 该命令是 `chpass` 的别名。
- 查看原始命令的文档:
`tldr chpass`

28
pages.zh/openbsd/df.md Normal file
View File

@@ -0,0 +1,28 @@
# df
> 显示文件系统磁盘空间使用的概述。
> 更多信息:<https://man.openbsd.org/df.1>。
- 使用512字节单位显示所有文件系统及其磁盘使用情况
`df`
- 以[人类可读]的形式显示所有文件系统及其磁盘使用情况基于1024的幂
`df -h`
- 显示包含给定文件或目录的文件系统及其磁盘使用情况:
`df {{path/to/file_or_directory}}`
- 包括自由和已用[i]节点的统计信息:
`df -i`
- 在写入空间数字时使用1024字节单位
`df -k`
- 以[P]可移植的方式显示信息:
`df -P`

16
pages.zh/openbsd/pkg.md Normal file
View File

@@ -0,0 +1,16 @@
# pkg
> OpenBSD 包管理工具。
> 更多信息请访问:<https://www.openbsd.org/faq/faq15.html>。
- 查看安装/更新包的文档:
`tldr pkg_add`
- 查看删除包的文档:
`tldr pkg_delete`
- 查看有关包的信息的文档:
`tldr pkg_info`

View File

@@ -0,0 +1,17 @@
# pkg_add
> 在OpenBSD中安装/更新软件包。
> 另见: `pkg_info`, `pkg_delete`。
> 更多信息: <https://man.openbsd.org/pkg_add>。
- 更新所有软件包,包括依赖项:
`pkg_add -u`
- 安装一个新软件包:
`pkg_add {{package}}`
-`pkg_info`的原始输出中安装软件包:
`pkg_add -l {{path/to/file}}`

View File

@@ -0,0 +1,17 @@
# pkg_delete
> 在 OpenBSD 中删除软件包。
> 另见:`pkg_add``pkg_info`。
> 更多信息:<https://man.openbsd.org/pkg_delete>。
- 删除一个软件包:
`pkg_delete {{package}}`
- 删除一个软件包,包括其未使用的依赖项:
`pkg_delete -a {{package}}`
- 进行软件包的干运行删除:
`pkg_delete -n {{package}}`

View File

@@ -0,0 +1,13 @@
# pkg_info
> 查看 OpenBSD 中包的信息。
> 另见: `pkg_add`, `pkg_delete`。
> 更多信息: <https://man.openbsd.org/pkg_info>。
- 使用包名搜索包:
`pkg_info -Q {{package}}`
- 输出已安装软件包的列表,以便与 `pkg_add -l` 一起使用:
`pkg_info -mz`

29
pages.zh/openbsd/sed.md Normal file
View File

@@ -0,0 +1,29 @@
# sed
> 以可脚本化的方式编辑文本。
> 另见:`awk``ed`。
> 更多信息:<https://man.openbsd.org/sed.1>。
- 将所有输入行中的 `apple`(基本正则表达式)替换为 `mango`(基本正则表达式),并将结果打印到 `stdout`
`{{command}} | sed 's/apple/mango/g'`
- 执行特定的脚本 [f]ile并将结果打印到 `stdout`
`{{command}} | sed -f {{path/to/script.sed}}`
- 延迟打开每个文件,直到对输入行应用包含相关 `w` 函数或标志的命令:
`{{command}} | sed -fa {{path/to/script.sed}}`
- 将所有输入行中的 `apple`(扩展正则表达式)替换为 `APPLE`(扩展正则表达式),并将结果打印到 `stdout`
`{{command}} | sed -E 's/(apple)/\U\1/g'`
- 仅将第一行打印到 `stdout`
`{{command}} | sed -n '1p'`
- 将特定文件中的所有 `apple`(基本正则表达式)替换为 `mango`(基本正则表达式),并在原地覆盖原始文件:
`sed -i 's/apple/mango/g' {{path/to/file}}`