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

@@ -0,0 +1,28 @@
# base64
> 将文件或 `stdin` 编码或解码为 base64输出到 `stdout` 或其他文件。
> 更多信息:<https://man.freebsd.org/cgi/man.cgi?query=base64>。
- 将文件编码到 `stdout`
`base64 {{-i|--input}} {{path/to/file}}`
- 将文件编码到指定的输出文件:
`base64 {{-i|--input}} {{path/to/input_file}} {{-o|--output}} {{path/to/output_file}}`
- 在特定宽度上包装编码输出(`0` 禁用包装):
`base64 {{-b|--break}} {{0|76|...}} {{path/to/file}}`
- 将文件解码到 `stdout`
`base64 {{-d|--decode}} {{-i|--input}} {{path/to/file}}`
-`stdin` 编码到 `stdout`
`{{command}} | base64`
-`stdin` 解码到 `stdout`
`{{command}} | base64 {{-d|--decode}}`

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

@@ -0,0 +1,32 @@
# 日历
> 显示一个突出显示当前日期的日历。
> 更多信息:<https://man.freebsd.org/cgi/man.cgi?cal>。
- 显示当前月份的日历:
`cal`
- 显示特定年份的日历:
`cal {{year}}`
- 显示特定月份和年份的日历:
`cal {{month}} {{year}}`
- 显示当前年份的完整日历:
`cal -y`
- 不要突出显示今天并显示跨越日期的3个月
`cal -h -3 {{month}} {{year}}`
- 显示当前年份中特定月份之前的2个月和之后的3个月
`cal -A 3 -B 2 {{month}}`
- 显示儒略日从1开始从1月1日起编号
`cal -j`

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

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

View File

@@ -0,0 +1,33 @@
# chpass
> 添加或更改用户数据库信息,包括登录 shell 和密码。
> 另见:`passwd`。
> 更多信息:<https://man.freebsd.org/cgi/man.cgi?chpass>。
- 交互式为当前用户添加或更改用户数据库信息:
`su -c chpass`
- 为当前用户设置特定的登录 [s]hell
`chpass -s {{path/to/shell}}`
- 为特定用户设置登录 [s]hell
`chpass -s {{path/to/shell}} {{username}}`
- 更改账户 [e]xpire 时间自纪元起的秒数UTC
`su -c 'chpass -e {{time}} {{username}}'`
- 更改用户密码:
`su -c 'chpass -p {{encrypted_password}} {{username}}'`
- 指定要查询的 NIS 服务器的 [h]ostname 或地址:
`su -c 'chpass -h {{hostname}} {{username}}'`
- 指定特定的 NIS [d]omain默认系统域名
`su -c 'chpass -d {{domain}} {{username}}'`

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

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

32
pages.zh/freebsd/df.md Normal file
View File

@@ -0,0 +1,32 @@
# df
> 显示文件系统磁盘空间使用情况的概述。
> 更多信息:<https://man.freebsd.org/cgi/man.cgi?df>。
- 使用512字节单位显示所有文件系统及其磁盘使用情况
`df`
- 使用[人类可读]单位基于1024的幂并显示总计
`df -h -c`
- 使用[人类可读]单位基于1000的幂
`df -{{-si|H}}`
- 显示包含给定文件或目录的文件系统及其磁盘使用情况:
`df {{path/to/file_or_directory}}`
- 包括有关空闲和已用[i]节点数量的统计信息,包括文件系统[T]ypes
`df -iT`
- 写入空间数字时使用1024字节单位
`df -k`
- 以[P]ortable方式显示信息
`df -P`

21
pages.zh/freebsd/look.md Normal file
View File

@@ -0,0 +1,21 @@
# look
> 在排序文件中显示以特定前缀开头的行。
> 另见: `grep`, `sort`。
> 更多信息: <https://man.freebsd.org/cgi/man.cgi?look>。
- 在特定文件中搜索以特定前缀开头的行:
`look {{前缀}} {{路径/到/文件}}`
- 仅对字母数字字符进行不区分大小写的搜索:
`look {{-f|--ignore-case}} {{-d|--alphanum}} {{前缀}} {{路径/到/文件}}`
- 指定字符串结束字符(默认是空格):
`look {{-t|--terminate}} {{,}}`
-`/usr/share/dict/words` 中搜索(假定使用 `--ignore-case``--alphanum`
`look {{前缀}}`

28
pages.zh/freebsd/pkg.md Normal file
View File

@@ -0,0 +1,28 @@
# pkg
> FreeBSD 包管理器。
> 更多信息:<https://man.freebsd.org/cgi/man.cgi?pkg>。
- 安装新包:
`pkg install {{package}}`
- 删除一个包:
`pkg delete {{package}}`
- 升级所有包:
`pkg upgrade`
- 搜索一个包:
`pkg search {{keyword}}`
- 列出已安装的包:
`pkg info`
- 移除不需要的依赖:
`pkg autoremove`

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

@@ -0,0 +1,29 @@
# sed
> 以可脚本化的方式编辑文本。
> 另见:`awk``ed`。
> 更多信息:<https://www.freebsd.org/cgi/man.cgi?sed>。
- 在所有输入行中将所有 `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}}`

View File

@@ -0,0 +1,36 @@
# sockstat
> 列出打开的互联网或UNIX域套接字。
> 更多信息:<https://man.freebsd.org/cgi/man.cgi?sockstat>。
- 查看哪些用户/进程在监听哪些端口:
`sockstat -l`
- 显示使用特定协议在特定端口上监听的IPv[4]/IPv[6]套接字的信息:
`sockstat -{{4|6}} -l -P {{tcp|udp|sctp|divert}} -p {{port1,port2...}}`
- 还显示已连接的套接字不将数字UID解析为用户名并使用更宽的字段大小
`sockstat -cnw`
- 仅显示属于特定监狱ID或名称的套接字并以详细模式显示
`sockstat -jv`
- 显示协议状态和远程UDP封装端口号如果适用目前仅为SCTP和TCP实现
`sockstat -sU`
- 显示拥塞控制模块和协议栈如果适用目前仅为TCP实现
`sockstat -CS`
- 仅显示互联网套接字如果本地和外国地址不在回环网络前缀127.0.0.0/8中或不包含IPv6回环地址::1
`sockstat -L`
- 不显示头部静默模式显示UNIX套接字并显示`inp_gencnt`
`sockstat -qui`

View File

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

View File

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

View File

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