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,7 +1,7 @@
# aa
> 是 `yaa` 命令的一个别名。
> 此命令是 `yaa` 别名。
- 命令的文档
- 查看原始命令的文档:
`tldr yaa`
`tldr yaa`

View File

@@ -1,29 +1,29 @@
# afinfo
> 显示音频文件元数据Metadata详细信息OS X
> OS X 自带命令。
> 更多信息:<https://keith.github.io/xcode-man-pages/afinfo.1.html>.
> OS X 的音频文件元数据解析器
> OS X 的内置命令。
> 更多信息:<https://keith.github.io/xcode-man-pages/afinfo.1.html>
- 显示给定音频文件的详细信息:
- 显示给定音频文件的信息:
`afinfo {{路径/到/文件}}`
`afinfo {{path/to/file}}`
- 显示简化的音频文件信息(单行)
- 打印音频文件的一行描述
`afinfo --brief {{路径/到/文件}}`
`afinfo --brief {{path/to/file}}`
- 显示音频文件的元数据信息以及其 InfoDictionary 词典
- 打印音频文件的元数据 InfoDictionary 的内容
`afinfo --info {{路径/到/文件}}`
`afinfo --info {{path/to/file}}`
-xml 格式显示音频文件信息
-XML 格式打印输出
`afinfo --xml {{路径/到/文件}}`
`afinfo --xml {{path/to/file}}`
- 显示警告信息(如存在)
- 如果音频文件有任何警告,则打印警告
`afinfo --warnings {{路径/到/文件}}`
`afinfo --warnings {{path/to/file}}`
- 显示完整用法帮助:
- 显示帮助信息
`afinfo --help`
`afinfo --help`

20
pages.zh/osx/afplay.md Normal file
View File

@@ -0,0 +1,20 @@
# afplay
> 命令行音频播放器。
> 更多信息:<https://keith.github.io/xcode-man-pages/afplay.1.html>。
- 播放一个音频文件(等待播放结束):
`afplay {{path/to/file}}`
- 以2倍速播放音频文件播放速率
`afplay --rate {{2}} {{path/to/file}}`
- 以半速播放音频文件:
`afplay --rate {{0.5}} {{path/to/file}}`
- 播放音频文件的前N秒
`afplay --time {{seconds}} {{path/to/file}}`

24
pages.zh/osx/aiac.md Normal file
View File

@@ -0,0 +1,24 @@
# aiac
> 使用 OpenAI 生成基础设施即代码IaC配置、工具、查询等。
> 更多信息:<https://github.com/gofireflyio/aiac>。
- 为 Azure 存储账户生成 Terraform
`aiac get terraform {{为一个 Azure 存储账户}}`
- 为 nginx 生成 Dockerfile
`aiac get dockerfile {{为一个安全的 nginx}}`
- 生成一个应用 Terraform 的 GitHub 操作:
`aiac get github action {{计划并应用 terraform}}`
- 在 Python 中生成一个端口扫描器:
`aiac get python {{扫描我网络中所有开放端口的代码}}`
- 生成一个 MongoDB 查询:
`aiac get mongo {{按创建日期聚合所有文档的查询}}`

View File

@@ -1,13 +1,13 @@
# airport
# 无线网络
> 无线网络配置工具。
> 更多信息<https://keith.github.io/xcode-man-pages/airport.1.html>.
> 更多信息: <https://keith.github.io/xcode-man-pages/airport.1.html>
- 显示当前无线状态信息:
- 显示当前无线状态信息:
`airport --getinfo`
-道 1 上监察(嗅探无线流量:
-道 1 上嗅探无线流量:
`airport sniff {{1}}`
@@ -15,6 +15,6 @@
`airport --scan`
- 与当前的 Airport 网络脱离连接:
- 与当前机场网络断开连接:
`sudo airport --disassociate`
`sudo airport --disassociate`

9
pages.zh/osx/airportd.md Normal file
View File

@@ -0,0 +1,9 @@
# airportd
> 管理无线接口。
> 不应手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/airportd.8.html>。
- 启动守护进程:
`airportd`

View File

@@ -1,16 +1,16 @@
# apachectl
> 用于 macOS 的 Apache HTTP Server 控制接口(工具)
> 更多信息:<https://keith.github.io/xcode-man-pages/apachectl.8.html>.
> Apache HTTP 服务器控制接口,适用于 macOS
> 更多信息:<https://keith.github.io/xcode-man-pages/apachectl.8.html>
- 启动 org.apache.httpd务:
- 启动 `org.apache.httpd` launchd 任务:
`apachectl start`
- 停止已启动的服务:
- 停止 launchd 任务:
`apachectl stop`
- 重新启动服务:
- 停止,然后启动 launchd 任务:
`apachectl restart`
`apachectl restart`

View File

@@ -0,0 +1,9 @@
# applecamerad
> 摄像头管理器。
> 不应手动调用。
> 更多信息:<https://www.theiphonewiki.com/wiki/Services>。
- 启动守护进程:
`applecamerad`

View File

@@ -0,0 +1,9 @@
# appsleepd
> 启动应用休眠服务。
> 不应手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/appsleepd.8.html>.
- 启动守护进程:
`appsleepd`

View File

@@ -1,13 +1,17 @@
# arch
> 显示系统架构的名称,或在不同架构下运行命令。
> 另见: `uname`.
> 更多信息:<https://keith.github.io/xcode-man-pages/arch.1.html>.
> 显示系统架构的名称,或在不同架构下运行命令。
> 另见`uname`
> 更多信息:<https://keith.github.io/xcode-man-pages/arch.1.html>
- 显示系统的架构:
`arch`
- 使用 x86_64 运行一个命令:
- 使用 x86_64 运行命令:
`arch -x86_64 {{命令}}`
`arch -x86_64 "{{command}}"`
- 使用 arm 运行命令:
`arch -arm64 "{{command}}"`

View File

@@ -1,20 +1,20 @@
# archey
> 漂亮地显示简单系统信息工具
> 更多信息:<https://github.com/joshfinnie/archey-osx>.
> 时尚地显示系统信息。
> 更多信息请访问<https://github.com/joshfinnie/archey-osx>
- 显示系统信息(彩色的)
- 显示系统信息:
`archey`
- 显示系统信息(单色的)
- 显示系统信息,不带颜色输出
`archey --nocolor`
- 显示系统信息,使用 MacPorts(命令行软件安装管理工具 port来替代 Homebrew另一种更常用的 mac 命令行软件安装管理工具)
- 显示系统信息,使用 MacPorts 而不是 Homebrew
`archey --macports`
- 显示系统信息,不进行 IP 地址获取和验证
- 显示系统信息,不进行 IP 地址检查
`archey --offline`
`archey --offline`

View File

@@ -1,21 +1,21 @@
# as
> 便携式 GNU 汇编程序
> 主要用于汇编 `gcc` 的输出以供 `ld` 使用。
> 更多信息:<https://keith.github.io/xcode-man-pages/as.1.html>.
> 可移植的GNU汇编
> 主要用于`gcc`的输出汇编为`ld`使用。
> 更多信息:<https://keith.github.io/xcode-man-pages/as.1.html>
- 汇编文件,将输出写入 a.out
- 汇编一个文件,将输出写入`a.out`
`as {{路径/到/文件.s}}`
`as {{path/to/file.s}}`
- 将输出汇编到定文件:
- 将输出汇编到定文件:
`as {{路径/到/文件.s}} -o {{路径/到/输出.o}}`
`as {{path/to/file.s}} -o {{path/to/output_file.o}}`
- 通过跳过空白和注释预处理来更快地生成输出.(应该只用于受信任的编译器):
- 通过跳过空白和注释预处理来加快输出生成速度。(仅应对受信任的编译器使用
`as -f {{路径/到/文件.s}}`
`as -f {{path/to/file.s}}`
- 在目录列表中包含一个给定路径,以搜索 .include 指令中指定文件:
- 将给定路径包含在搜索`.include`指令中指定文件的目录列表中
`as -I {{目标文件夹}} {{路径/到/文件.s}}`
`as -I {{path/to/directory}} {{path/to/file.s}}`

View File

@@ -1,21 +1,21 @@
# asr
> 将磁盘映像还原(复制)到卷上。
> 命令名称 Apple Software Restore 的缩写
> 更多信息:<https://keith.github.io/xcode-man-pages/asr.8.html>.
> 命令名称代表 Apple 软件还原
> 更多信息:<https://keith.github.io/xcode-man-pages/asr.8.html>
- 将磁盘映像复制到目标卷:
- 将磁盘映像还原到目标卷:
`sudo asr restore --source {{映像名.dmg}} --target {{卷路径}}`
`sudo asr restore --source {{image_file.dmg}} --target {{path/to/volume_file}}`
-复制之前擦除目标卷:
-还原之前擦除目标卷:
`sudo asr restore --source {{映像名.dmg}} --target {{卷路径}} --erase`
`sudo asr restore --source {{image_file.dmg}} --target {{path/to/volume_file}} --erase`
- 恢复后跳过验证步骤
- 在还原后跳过验证:
`sudo asr restore --source {{映像名.dmg}} --target {{卷路径}} --noverify`
`sudo asr restore --source {{image_file.dmg}} --target {{path/to/volume_file}} --noverify`
- 不使用中间磁盘映像直接复制卷中的数据
- 不使用中间磁盘映像的情况下克隆卷
`sudo asr restore --source {{卷路径}} --target {{复制卷路径}}`
`sudo asr restore --source {{path/to/volume_file}} --target {{path/to/volume_file}}`

9
pages.zh/osx/autofsd.md Normal file
View File

@@ -0,0 +1,9 @@
# autofsd
> 在启动和网络配置更改事件时运行 `automount`。
> 不应手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/autofsd.8.html>。
- 启动守护进程:
`autofsd`

17
pages.zh/osx/automount.md Normal file
View File

@@ -0,0 +1,17 @@
# automount
> 读取 `/etc/auto_master` 文件,并在适当的挂载点上挂载 `autofs` 以触发按需挂载目录。基本上,这是一种手动启动系统自动挂载过程的方法。
> 注意:如果您没有必要的权限,您很可能需要使用 `sudo` 运行。
> 更多信息:<https://keith.github.io/xcode-man-pages/automount.8.html>。
- 运行 automount提前刷新缓存`-c`),并详细输出(`-v`)(最常用的用法):
`automount -cv`
- 在 5 分钟300 秒)不活动后自动卸载:
`automount -t 300`
- 卸载任何之前由 automount 挂载的内容和/或在 `/etc/auto_master` 中定义的内容:
`automount -u`

View File

@@ -0,0 +1,13 @@
# automountd
> `autofs` 的自动挂载/卸载守护进程。由 `launchd` 按需启动。
> 不应手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/automountd.8.html>。
- 启动守护进程:
`automountd`
- 将更多详细信息记录到 `syslog`
`automountd -v`

View File

@@ -0,0 +1,8 @@
# 自动提升
> 当鼠标悬停在窗口上时,自动提升和/或聚焦该窗口。
> 更多信息:<https://github.com/sbmpost/AutoRaise>。
- 在后台运行自动提升:
`autoraise &`

12
pages.zh/osx/auvaltool.md Normal file
View File

@@ -0,0 +1,12 @@
# auvaltool
> Mac的AudioUnit验证工具。
> 更多信息:<https://keith.github.io/xcode-man-pages/auvaltool.1.html>。
- 列出所有可用的AudioUnit类型
`auvaltool -a`
- 列出所有可用的AudioUnit类型及其位置
`auvaltool -al`

View File

@@ -0,0 +1,9 @@
# avbdeviced
> 一个用于管理音频视频桥接AVB设备的服务。
> 不应手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/avbdeviced.1.html>。
- 启动守护进程:
`avbdeviced`

9
pages.zh/osx/backupd.md Normal file
View File

@@ -0,0 +1,9 @@
# backupd
> 创建时间机器备份并管理其备份历史。
> 不应手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/backupd.8.html>。
- 启动守护进程:
`backupd`

View File

@@ -1,20 +1,28 @@
# base64
> 使用 Base64 来进行编码和解码
> 更多信息:<https://keith.github.io/xcode-man-pages/base64.1.html>.
> 编码或解码文件或 `stdin` 到/从 base64输出到 `stdout` 或另一个文件
> 更多信息:<https://keith.github.io/xcode-man-pages/base64.1.html>
- 编码目标文件
- 将文件编码到 `stdout`
`base64 --input={{目标文件}}`
`base64 {{-i|--input}} {{path/to/file}}`
- 解码目标文件:
- 将文件编码到指定的输出文件:
`base64 --decode --input={{base64 编码文件}}`
`base64 {{-i|--input}} {{path/to/input_file}} {{-o|--output}} {{path/to/output_file}}`
- 通过标准输入管道进行解码
- 在特定宽度下换行编码输出(`0` 禁用换行)
`echo -n "{{目标字符串}}" | base64`
`base64 {{-b|--break}} {{0|76|...}} {{path/to/file}}`
- 解码标准输入管道内容
- 将文件解码到 `stdout`
`echo -n {{base64 字符串}} | base64 --decode`
`base64 {{-d|--decode}} {{-i|--input}} {{path/to/file}}`
-`stdin` 编码到 `stdout`
`{{command}} | base64`
-`stdin` 解码到 `stdout`
`{{command}} | base64 {{-d|--decode}}`

29
pages.zh/osx/bc.md Normal file
View File

@@ -0,0 +1,29 @@
# bc
> 一个任意精度计算器语言。
> 另见:`dc`。
> 更多信息:<https://keith.github.io/xcode-man-pages/bc.1.html>。
- 开始一个交互式会话:
`bc`
- 启用标准数学库开始一个交互式会话:
`bc --mathlib`
- 计算一个表达式:
`bc --expression='{{5 / 3}}'`
- 执行一个脚本:
`bc {{path/to/script.bc}}`
- 以指定的精度计算一个表达式:
`bc --expression='scale = {{10}}; {{5 / 3}}'`
- 使用 `mathlib` 计算正弦/余弦/反正切/自然对数/指数函数:
`bc --mathlib --expression='{{s|c|a|l|e}}({{1}})'`

20
pages.zh/osx/bclm.md Normal file
View File

@@ -0,0 +1,20 @@
# bclm
> 在MacBook上设置自定义充电限制。
> 更多信息:<https://github.com/zackelia/bclme>。
- 将充电限制设置为约80%对于Intel机器电池充电水平可能会略低于设定值
`sudo bclm write {{77}}`
- 读取当前充电限制:
`bclm read`
- 在重启/SMC重置后保持充电限制
`sudo bclm persist`
- 移除持久充电限制:
`sudo bclm unpersist`

View File

@@ -0,0 +1,9 @@
# biomesyncd
> 在注册到同一账户的设备之间同步数据。
> 不应手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/biomesyncd.8.html>。
- 启动守护进程:
`biomesyncd`

View File

@@ -0,0 +1,9 @@
# biometrickitd
> 获取生物识别操作的支持。
> 不应手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/biometrickitd.8.html>。
- 启动守护进程:
`biometrickitd`

9
pages.zh/osx/bird.md Normal file
View File

@@ -0,0 +1,9 @@
# bird
> 这支持 iCloud 和 iCloud Drive 的同步。
> 不应手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/bird.8.html>。
- 启动守护进程:
`bird`

20
pages.zh/osx/bless.md Normal file
View File

@@ -0,0 +1,20 @@
# bless
> 设置卷启动能力和启动磁盘选项。
> 更多信息: <https://keith.github.io/xcode-man-pages/bless.8.html>。
- 仅对 Mac OS X 或 Darwin 进行 bless并根据需要创建 BootX 和 `boot.efi` 文件:
`bless --folder {{/Volumes/Mac OS X/System/Library/CoreServices}} --bootinfo --bootefi`
- 将包含 Mac OS 9 和 Mac OS X 的卷设置为活动卷:
`bless --mount {{/Volumes/Mac OS}} --setBoot`
- 设置系统为 NetBoot 并广播可用服务器:
`bless --netboot --server {{bsdp://255.255.255.255}}`
- 收集有关当前选定卷的信息(由固件确定),适合传递给能够解析属性列表的程序:
`bless --info --plist`

9
pages.zh/osx/bnepd.md Normal file
View File

@@ -0,0 +1,9 @@
# bnepd
> 一个处理所有蓝牙网络连接的服务。
> 不应手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/bnepd.8.html>。
- 启动守护进程:
`bnepd`

View File

@@ -1,16 +1,16 @@
# brightness
# 亮度
> 获取设置所有显示设备的亮度级。
> 更多信息:<https://github.com/nriley/brightness>.
> 获取设置所有内部显示器以及某些外部显示器的亮度级
> 更多信息:<https://github.com/nriley/brightness>
- 显示当前亮度:
`brightness -l`
- 设置亮度到 100%:
- 设置特定亮度:
`brightness {{1}}`
`brightness {{0..1}}`
- 设置亮度到 50%:
- 将亮度设置为50%
`brightness {{0.5}}`
`brightness {{0.5}}`

View File

@@ -1,16 +1,24 @@
# caffeinate
> 防止 Mac 进入休眠模式
> 更多信息:<https://keith.github.io/xcode-man-pages/caffeinate.8.html>.
> 防止 macOS 进入睡眠状态
> 更多信息:<https://keith.github.io/xcode-man-pages/caffeinate.8.html>
- 防止进入休眠模式 , 1 小时3600 秒):
- 防止睡眠 1 小时3600 秒):
`caffeinate -u -t {{3600}}`
- 在指定命令执行完前,禁止进入休眠
- 防止睡眠直到命令完成
`caffeinate -s {{命令}}`
`caffeinate -s "{{command}}"`
- 在你按 Ctrl-C 之前禁止进入休眠模式
- 防止睡眠直到指定 PID 的进程完成
`caffeinate -w {{pid}}`
- 防止睡眠(使用 `Ctrl + C` 退出):
`caffeinate -i`
- 防止磁盘进入睡眠状态(使用 `Ctrl + C` 退出):
`caffeinate -m`

View File

@@ -1,32 +1,32 @@
# cal
> 打印日历信息。
> 更多信息:<https://keith.github.io/xcode-man-pages/cal.1.html>.
> 更多信息:<https://keith.github.io/xcode-man-pages/cal.1.html>
- 显示本月日历:
- 显示当前月份的日历:
`cal`
- 显示上月、本月和下月的日历
- 显示上月、当前和下个月
`cal -3`
- 显示定月份的日历(月份为 1-12
- 显示定月份的日历1-12 或名称
`cal -m {{}}`
`cal -m {{month}}`
- 显示本年日历:
- 显示当前年份的日历:
`cal -y`
- 显示定年份的日历(年份为 4 个数字):
- 显示定年份的日历(4位数字):
`cal {{}}`
`cal {{year}}`
- 显示指定年月的日历:
- 显示特定月份和年份的日历:
`cal {{}} {{}}`
`cal {{month}} {{year}}`
- 显示定年份的复活节日期:
- 显示定年份的复活节日期(西方基督教教会)
`ncal -e {{}}`
`ncal -e {{year}}`

View File

@@ -1,24 +1,24 @@
# carthage
# Carthage
> Cocoa 应用程序的依赖管理工具。
> 更多信息:<https://github.com/Carthage/Carthage>.
> 一个用于Cocoa应用程序的依赖管理工具。
> 更多信息:<https://github.com/Carthage/Carthage>
- 下载 Cartfile 中提到的所有依赖的最新版本,并编译它们:
- 下载Cartfile中提到的所有依赖的最新版本构建它们:
`carthage update`
- 仅针对 IOS 平台,升级依赖文件
- 更新依赖但仅为iOS构建
`carthage update --platform ios`
- 更新依赖,但不编译它们
- 更新依赖,但不构建任何依赖
`carthage update --no-build`
- 下载并重新生成依赖项的当前版本(不更新它们):
- 下载并重当前版本的依赖(不更新它们):
`carthage bootstrap`
-新编译特定依赖
-特定依赖:
`carthage build {{依赖包}}`
`carthage build {{dependency}}`

32
pages.zh/osx/cat.md Normal file
View File

@@ -0,0 +1,32 @@
# cat
> 打印和连接文件。
> 更多信息:<https://keith.github.io/xcode-man-pages/cat.1.html>。
- 将文件的内容打印到 `stdout`
`cat {{path/to/file}}`
- 将多个文件连接成一个输出文件:
`cat {{path/to/file1 path/to/file2 ...}} > {{path/to/output_file}}`
- 将多个文件追加到输出文件:
`cat {{path/to/file1 path/to/file2 ...}} >> {{path/to/output_file}}`
- 将文件的内容复制到输出文件,不进行缓冲:
`cat -u {{/dev/tty12}} > {{/dev/tty13}}`
-`stdin` 写入文件:
`cat - > {{path/to/file}}`
- 为所有输出行编号:
`cat -n {{path/to/file}}`
- 显示不可打印和空白字符如果是非ASCII字符则带有 `M-` 前缀):
`cat -v -t -e {{path/to/file}}`

9
pages.zh/osx/cfprefsd.md Normal file
View File

@@ -0,0 +1,9 @@
# cfprefsd
> 启动偏好设置服务(`CFPreferences``NSUserDefaults`)。
> 不应手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/cfprefsd.8.html>。
- 启动守护进程:
`cfprefsd`

View File

@@ -1,20 +1,20 @@
# chflags
> 更改文件或文件夹的标志。
> 更多信息:<https://keith.github.io/xcode-man-pages/chflags.1.html>.
> 更改文件或目录标志。
> 更多信息:<https://keith.github.io/xcode-man-pages/chflags.1.html>
- 文件设置 hidden(隐藏)标签
- 文件设置 `hidden` 标志
`chflags {{hidden}} {{文件路径}}`
`chflags {{hidden}} {{path/to/file}}`
- 取消文件的 hidden 标
- 为文件取消设置 `hidden`
`chflags {{hidden}} {{文件路径}}`
`chflags {{nohidden}} {{path/to/file}}`
- 递归地给文件夹中每个文件设置 uchg 标志:
- 递归地为目录设置 `uchg` 标志:
`chflags -R {{uchg}} {{文件夹路径}}`
`chflags -R {{uchg}} {{path/to/directory}}`
- 递归地撤销文件夹中每个文件设置的 uchg 标志:
- 递归地为目录取消设置 `uchg` 标志:
`chflags -R {{nouchg}} {{文件夹路径}}`
`chflags -R {{nouchg}} {{path/to/directory}}`

26
pages.zh/osx/chpass.md Normal file
View File

@@ -0,0 +1,26 @@
# chpass
> 添加或更改用户数据库信息,包括登录 shell 和密码。
> 注意:在 Open Directory 系统上无法更改用户的密码,请使用 `passwd`。
> 另见:`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}}`
- 在给定 [l]ocation 的目录节点上编辑用户记录:
`chpass -l {{location}} -s {{path/to/shell}} {{username}}`
- 在对包含用户的目录节点进行身份验证时使用给定的 [u]sername
`chpass -u {{authname}} -s {{path/to/shell}} {{username}}`

9
pages.zh/osx/cloudd.md Normal file
View File

@@ -0,0 +1,9 @@
# cloudd
> 支持 CloudKit 功能。
> 不应手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/cloudd.8.html>。
- 启动守护进程:
`cloudd`

View File

@@ -0,0 +1,9 @@
# cloudphotod
> 该命令用于同步 iCloud 照片。
> 不应手动调用。
> 更多信息:<https://www.manpagez.com/man/8/cloudphotosd/>.
- 启动守护进程:
`cloudphotod`

View File

@@ -1,12 +1,12 @@
# codesign
> 为 macOS 的应用程序签名。
> 更多信息:<https://keith.github.io/xcode-man-pages/codesign.1.html>.
> 为 macOS 创建和操作代码签名。
> 更多信息:<https://keith.github.io/xcode-man-pages/codesign.1.html>
- 用证书签名:
- 使用证书对应用程序进行签名:
`codesign --sign "{{公司名称}}" {{路径 / 应用名.app}}`
`codesign --sign "{{我的公司名称}}" {{path/to/application_file.app}}`
- 验证应用程序的签名
- 验证应用程序的证书
`codesign --verify {{路径 / 应用名.app}}`
`codesign --verify {{path/to/application_file.app}}`

View File

@@ -0,0 +1,9 @@
# coreaudiod
> Core Audio的服务苹果的音频系统。
> 不应手动调用。
> 更多信息:<https://developer.apple.com/library/archive/documentation/MusicAudio/Conceptual/CoreAudioOverview/WhatisCoreAudio/WhatisCoreAudio.html>。
- 启动守护进程:
`coreaudiod`

View File

@@ -0,0 +1,9 @@
# coreautha
> 一个提供 `LocalAuthentication` 框架的系统代理。
> 不应手动调用。另见:`coreauthd`。
> 更多信息:<https://keith.github.io/xcode-man-pages/coreautha.8.html>。
- 启动代理:
`coreautha`

View File

@@ -0,0 +1,9 @@
# coreauthd
> 一个提供 `LocalAuthentication` 框架的系统守护进程。
> 不应手动调用。另请参见:`coreautha`。
> 更多信息:<https://keith.github.io/xcode-man-pages/coreauthd.8.html>。
- 启动代理:
`coreauthd`

View File

@@ -0,0 +1,9 @@
# corebrightnessd
> 管理夜间模式。
> 它不应该被手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/corebrightnessd.8.html>。
- 启动守护进程:
`corebrightnessd`

View File

@@ -0,0 +1,9 @@
# coredatad
> 为NSPersistentCloudKitContainer的客户端调度CloudKit操作。
> 不应手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/coredatad.8.html>。
- 启动守护进程:
`coredatad`

24
pages.zh/osx/cot.md Normal file
View File

@@ -0,0 +1,24 @@
# cot
> macOS 的纯文本编辑器。
> 更多信息:<https://coteditor.com/>.
- 启动 CotEditor:
`cot`
- 打开特定文件:
`cot {{path/to/file1 path/to/file2 ...}}`
- 打开一个新的空文档:
`cot --new`
- 打开一个特定文件并在关闭之前阻塞终端:
`cot --wait {{path/to/file}}`
- 打开一个特定文件,并将光标放置在特定行和列:
`cot --line {{1}} --column {{80}} {{path/to/file}}`

28
pages.zh/osx/csrutil.md Normal file
View File

@@ -0,0 +1,28 @@
# csrutil
> 管理系统完整性保护配置。
> 更多信息:<https://keith.github.io/xcode-man-pages/csrutil.8.html>。
- 显示系统完整性保护状态:
`csrutil status`
- 禁用系统完整性保护:
`csrutil disable`
- 启用系统完整性保护:
`csrutil enable`
- 显示允许的NetBoot源列表
`csrutil netboot list`
- 将IPv4地址添加到允许的NetBoot源列表
`csrutil netboot add {{ip}}`
- 重置系统完整性保护状态并清除NetBoot列表
`csrutil clear`

16
pages.zh/osx/csshx.md Normal file
View File

@@ -0,0 +1,16 @@
# csshX
> macOS 的集群 SSH 工具。
> 更多信息:<https://github.com/brockgr/csshx>。
- 连接到多个主机:
`csshX {{hostname1}} {{hostname2}}`
- 使用给定的 SSH 密钥连接到多个主机:
`csshX {{user@hostname1}} {{user@hostname2}} --ssh_args "-i {{path/to/key_file.pem}}"`
-`/etc/clusters` 连接到预定义的集群:
`csshX cluster1`

9
pages.zh/osx/ctkd.md Normal file
View File

@@ -0,0 +1,9 @@
# ctkd
> 智能卡守护进程。
> 不应手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/ctkd.8.html>。
- 启动守护进程:
`ctkd`

16
pages.zh/osx/cut.md Normal file
View File

@@ -0,0 +1,16 @@
# cut
> 从 `stdin` 或文件中剪切字段。
> 更多信息:<https://keith.github.io/xcode-man-pages/cut.1.html>。
- 打印每行的特定字符/字段范围:
`{{command}} | cut -{{c|f}} {{1|1,10|1-10|1-|-10}}`
- 打印每行的字段范围,使用特定分隔符:
`{{command}} | cut -d "{{,}}" -f {{1}}`
- 打印特定文件每行的字符范围:
`cut -c {{1}} {{path/to/file}}`

View File

@@ -1,20 +1,20 @@
# dark-mode
# 暗黑模式
> 从命令行控制 macOS 的深色模式。
> 更多信息:<https://github.com/sindresorhus/dark-mode>.
> 控制 macOS 暗黑模式。
> 更多信息:<https://github.com/sindresorhus/dark-mode>
- 切换深色模式(如果前是关闭的,就把它打开,如果前是打开的,就把它关闭):
- 切换暗黑模式(如果前是关闭状态则开启,如果前是开启状态则关闭):
`dark-mode`
- 打开深色模式:
- 开启暗黑模式:
`dark-mode on`
- 关闭深色模式:
- 关闭暗黑模式:
`dark-mode off`
- 检查深色模式是否开启:
- 检查暗黑模式是否开启:
`dark-mode status`
`dark-mode status`

View File

@@ -0,0 +1,16 @@
# darwin-rebuild
> 重建并切换到基于 Nix 的 DarwinmacOS系统配置。
> 更多信息:<https://github.com/LnL7/nix-darwin>。
- 重建并切换到指定的 Darwin 配置:
`darwin-rebuild switch --flake {{path/to/flake}}`
- 构建配置但不切换到它:
`darwin-rebuild build --flake {{path/to/flake}}`
- 显示帮助信息:
`darwin-rebuild --help`

View File

@@ -1,9 +1,9 @@
# date
# 日期
> 设置或显示系统日期。
> 更多信息:<https://keith.github.io/xcode-man-pages/date.1.html>.
> 更多信息:<https://keith.github.io/xcode-man-pages/date.1.html>
- 使用默认区域设置的格式显示当前日期:
- 使用默认区域格式显示当前日期:
`date +%c`
@@ -11,10 +11,10 @@
`date -u +%Y-%m-%dT%H:%M:%SZ`
- 将当前日期显示为 unix 时间戳(自 1970-01-01 00:00:00 以来的秒数):
- 将当前日期显示为 Unix 时间戳(自 Unix 纪元以来的秒数):
`date +%s`
- 使用默认格式显示特定日期(格式化指定 UNIX 时间戳):
- 使用默认格式显示特定日期(以 Unix 时间戳表示
`date -r {{1473305798}}`
`date -r {{1473305798}}`

View File

@@ -1,20 +1,28 @@
# dd
> 转换并复制文件。
> 更多信息:<https://keith.github.io/xcode-man-pages/dd.1.html>.
> 更多信息:<https://keith.github.io/xcode-man-pages/dd.1.html>
- 从 isohybrid 文件(如 archlinux-xxx.iso)制作可用于引导系统启动的 USB 驱动器:
-一个 isohybrid 文件(`archlinux-xxx.iso`)创建一个可启动的 USB 驱动器,并显示进度
`dd if={{文件.iso}} of={{/dev/usb 设备}}`
`dd if={{path/to/file.iso}} of={{/dev/usb_drive}} status=progress`
- 将驱动器克隆到具有 4MB 块的另一个驱动器并忽略错误
-一个驱动器克隆到另一个驱动器,使用 4 MB 块,忽略错误并显示进度
`dd bs=4m conv=noerror if={{/dev/源设备}} of={{/dev/目标设备}}`
`dd bs=4m conv=noerror if={{/dev/source_drive}} of={{/dev/dest_drive}} status=progress`
- 使用内核随机驱动程序生成指定数量个随机字节的文件:
- 使用内核随机驱动程序生成一个具有特定字节数的随机文件:
`dd bs={{100}} count={{1}} if=/dev/urandom of={{目标驱动器,接收随机数据文件名}}`
`dd bs={{100}} count={{1}} if=/dev/urandom of={{path/to/random_file}}`
- 磁盘的写入性能进行基准测试
- 基准测试磁盘的写入性能:
`dd bs={{1024}} count={{1000000}} if=/dev/zero of={{1GB 的文件名}}`
`dd bs={{1024}} count={{1000000}} if=/dev/zero of={{path/to/1GB_file}}`
- 创建系统备份,将其保存到 IMG 文件中(可以通过交换 `if``of` 来恢复),并显示进度:
`dd if={{/dev/drive_device}} of={{path/to/file.img}} status=progress`
- 检查正在进行的 `dd` 操作的进度(从另一个 shell 中运行此命令):
`kill -USR1 $(pgrep ^dd)`

View File

@@ -1,24 +1,28 @@
# defaults
> 读取和写入 macOS 应用程序的用户配置。
> 更多信息:<https://keith.github.io/xcode-man-pages/defaults.1.html>.
> 更多信息:<https://keith.github.io/xcode-man-pages/defaults.1.html>
- 读取应用程序选项的系统默认值:
`defaults read {{应用名}} {{选项}}`
`defaults read "{{application}}" "{{option}}"`
- 读取应用程序选项的默认值:
`defaults read -app {{应用名}} {{选项}}`
`defaults read -app "{{application}}" "{{option}}"`
- 在域名、键和值中搜索关键字:
`defaults find "{{keyword}}"`
- 写入应用程序选项的默认值:
`defaults write {{应用名}} {{选项}} {{- 类型}} {{}}`
`defaults write "{{application}}" "{{option}}" {{-type}} {{value}}`
-速任务控制界面弹出动画(时间设置为 0.1
-快 Mission Control 动画速度
`defaults write com.apple.Dock expose-animation-duration -float 0.1`
- 删除应用程序的所有默认值:
`defaults delete {{应用名}}`
`defaults delete "{{application}}"`

9
pages.zh/osx/deleted.md Normal file
View File

@@ -0,0 +1,9 @@
# deleted
> 跟踪可清除空间,并在空间不足时请求客户端清除。
> 不应手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/deleted.8.html>。
- 启动守护进程:
`deleted`

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

@@ -0,0 +1,32 @@
# df
> 显示文件系统磁盘空间使用情况概览。
> 更多信息:<https://keith.github.io/xcode-man-pages/df.1.html>。
- 使用512字节单位显示所有文件系统及其磁盘使用情况
`df`
- 使用[人类可读]单位基于1024的幂并显示总计
`df -h -c`
- 使用[人类可读]单位基于1000的幂
`df -{{-si|H}}`
- 显示包含指定文件或目录的文件系统及其磁盘使用情况:
`df {{path/to/file_or_directory}}`
- 包括有关空闲和已用[i]节点的统计信息,包括文件系统类型[tY]
`df -iY`
- 在写入空间数字时使用1024字节单位
`df -k`
- 以[P]可移植的方式显示信息:
`df -P`

13
pages.zh/osx/dhcp6d.md Normal file
View File

@@ -0,0 +1,13 @@
# dhcp6d
> 无状态 DHCPv6 服务器。另见:`InternetSharing`。
> 不应手动调用。
> 更多信息:<https://www.manpagez.com/man/8/dhcp6d/>。
- 启动守护进程:
`dhcp6d`
- 使用自定义配置:
`dhcp6d {{path/to/config_file}}`

View File

@@ -0,0 +1,26 @@
# diskutil partitionDisk
> 用于管理磁盘和卷内的分区的工具。
> 属于 `diskutil`。
> APM 仅支持 macOSMBR 为 DOS 优化,而 GPT 兼容大多数现代系统。
> 更多信息:<https://keith.github.io/xcode-man-pages/diskutil.8.html>。
- 使用 APM/MBR/GPT 分区方案重新格式化卷,不留下任何分区(这将擦除卷上的所有数据):
`diskutil partitionDisk {{/dev/disk_device}} 0 {{APM|MBR|GPT}}`
- 重新格式化卷,然后创建一个使用特定文件系统的单一分区,填满所有空闲空间:
`diskutil partitionDisk {{/dev/disk_device}} 1 {{APM|MBR|GPT}} {{partition_filesystem}} {{partition_name}}`
- 重新格式化卷,然后创建一个使用特定文件系统的单一分区,大小为特定值(例如 `16G` 表示 16GB 或 `50%` 表示填满总卷大小的一半):
`diskutil partitionDisk {{/dev/disk_device}} 1 {{APM|MBR|GPT}} {{partition_filesystem}} {{partition_name}} {{partition_size}}`
- 重新格式化卷,然后创建多个分区:
`diskutil partitionDisk {{/dev/disk_device}} {{number_of_partitions}} {{APM|MBR|GPT}} {{partition_filesystem1}} {{partition_name1}} {{partition_size1}} {{partition_filesystem2}} {{partition_name2}} {{partition_size2}} ...`
- 列出所有支持的分区文件系统:
`diskutil listFilesystems`

View File

@@ -1,20 +1,21 @@
# diskutil
> 用于管理本地磁盘和卷的实用程序
> 更多信息:<https://keith.github.io/xcode-man-pages/diskutil.8.html>.
> 用于管理本地磁盘和卷的实用工具
> 一些子命令例如 `partitiondisk` 有自己的使用文档。
> 更多信息:<https://keith.github.io/xcode-man-pages/diskutil.8.html>。
- 列出所有当前可用的磁盘、分区和已装入的卷:
- 列出所有当前可用的磁盘、分区和已挂载的卷:
`diskutil list`
- 修复卷的文件系统数据结构:
`diskutil repairVolume {{目标卷文件}}`
`diskutil repairVolume {{/dev/disk_device}}`
- 卸载卷:
- 卸载一个卷:
`diskutil unmountDisk {{目标卷文件}}`
`diskutil unmountDisk {{/dev/disk_device}}`
- 弹出 CD/DVD先卸载
`diskutil eject {{/dev/ 光驱文件名}}`
`diskutil eject {{/dev/disk_device1}}`

View File

@@ -0,0 +1,9 @@
# distnoted
> 启动分布式通知服务。
> 不应手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/distnoted.8.html>。
- 启动守护进程:
`distnoted`

View File

@@ -1,16 +1,16 @@
# ditto
> 复制文件和目录。
> 更多信息:<https://keith.github.io/xcode-man-pages/ditto.1.html>.
> 更多信息:<https://keith.github.io/xcode-man-pages/ditto.1.html>
- 用源目录的内容覆盖目标目录的内容:
`ditto {{源文件路径}} {{目标文件路径}}`
`ditto {{path/to/source_directory}} {{path/to/destination_directory}}`
-复制的每个文件打印一行到终端窗口
-每个正在复制的文件在终端窗口打印一行
`ditto -V {{源文件路径}} {{目标文件路径}}`
`ditto -V {{path/to/source_directory}} {{path/to/destination_directory}}`
- 复制给定的文件或目录,同时保留原始文件权限:
`ditto -rsrc {{源文件路径}} {{目标文件路径}}`
`ditto -rsrc {{path/to/source_directory}} {{path/to/destination_directory}}`

View File

@@ -1,16 +1,16 @@
# dmesg
> 将内核消息写入标准输出
> 更多信息:<https://keith.github.io/xcode-man-pages/dmesg.8.html>.
> 将内核消息写入 `stdout`
> 更多信息:<https://keith.github.io/xcode-man-pages/dmesg.8.html>
- 显示内核消息:
`dmesg`
- 显示此系统上有多少可用的物理内存:
- 显示此系统上可用的物理内存
`dmesg | grep -i memory`
- 一次显示一页内核消息:
`dmesg | less`
`dmesg | less`

32
pages.zh/osx/dockutil.md Normal file
View File

@@ -0,0 +1,32 @@
# dockutil
> 管理 macOS Dock 项目。
> 更多信息:<https://github.com/kcrawford/dockutil>。
- 将应用程序添加到当前用户的 Dock 末尾:
`dockutil --add {{path/to/application}}`
- 在当前用户的 Dock 中用另一个应用程序替换一个应用程序:
`dockutil --add {{/path/to/application}} --replacing '{{dock_item_label}}'`
- 添加一个目录,并设置查看选项,将其显示为文件夹图标或堆叠:
`dockutil --add {{/path/to/directory}} --view {{grid|fan|list|auto}} --display {{folder|stack}}`
- 在另一个项目后添加一个 URL Dock 项:
`dockutil --add {{vnc://example_server.local}} --label '{{Example VNC}}' --after {{dock_item_label}}`
- 根据 Dock 标签名称从 Dock 中移除一个应用程序:
`dockutil --remove '{{dock_item_label}}'`
- 在应用程序后面添加一个间隔:
`dockutil --add '' --type {{spacer|small-spacer|flex-spacer}} --section {{apps}} --after {{dock_item_label}}`
- 移除所有间隔图块:
`dockutil --remove spacer-tiles`

28
pages.zh/osx/dot_clean.md Normal file
View File

@@ -0,0 +1,28 @@
# dot_clean
> 合并 ._* 文件与相应的本地文件。
> 更多信息:<https://keith.github.io/xcode-man-pages/dot_clean.1.html>。
- 递归合并所有 `._*` 文件:
`dot_clean {{path/to/directory}}`
- 不递归合并目录中的所有 `._*` 文件(扁平合并):
`dot_clean -f {{path/to/directory}}`
- 合并并删除所有 `._*` 文件:
`dot_clean -m {{path/to/directory}}`
- 仅在存在匹配的本地文件时删除 `._*` 文件:
`dot_clean -n {{path/to/directory}}`
- 跟随符号链接:
`dot_clean -s {{path/to/directory}}`
- 打印详细输出:
`dot_clean -v {{path/to/directory}}`

View File

@@ -1,12 +1,12 @@
# drutil
> DVD 刻录机交互。
> 更多信息:<https://keith.github.io/xcode-man-pages/drutil.1.html>.
> 与DVD刻录机交互。
> 更多信息:<https://keith.github.io/xcode-man-pages/drutil.1.html>
- 从驱动器中弹出盘:
- 从驱动器中弹出盘:
`drutil eject`
- 将目录作为 iso9660 文件系统刻录到 DVD 上。完成不验证弹出:
- 将目录作为ISO9660文件系统刻录到DVD上。完成不验证弹出:
`drutil burn -noverify -eject -iso9660`
`drutil burn -noverify -eject -iso9660`

37
pages.zh/osx/dtrace.md Normal file
View File

@@ -0,0 +1,37 @@
# dtrace
> 一个简单的接口,用于调用 D 语言编译器,检索缓冲的跟踪数据,并从 DTrace 内核设施打印跟踪数据。
> DTrace 设施的通用前端,要求具有根权限。
> 更多信息:<https://keith.github.io/xcode-man-pages/dtrace.1.html>。
- 为特定架构设置目标数据模型:
`dtrace -arch {{arch_name}}`
- 声明匿名跟踪状态并显示跟踪数据:
`dtrace -a`
- 设置主要跟踪缓冲区大小。支持的单位有 `k``m``g``t`
`dtrace -b {{2g}}`
- 编译指定的 D 程序源文件:
`dtrace -s {{D_script}}`
- 运行指定的命令并在完成后退出:
`dtrace -c {{command}}`
- 指定要跟踪或列出(-l 选项)的函数名称。相应的参数可以包括任何探测描述形式,如 `provider:module:function``module:function``function`
`dtrace -f {{function}}`
- 获取指定的进程 ID缓存其符号表并在完成后退出
`dtrace -p {{pid}}`
- 组合不同选项以跟踪进程中的函数:
`dtrace -a -b {{buffer_size}} -f {{function}} -p {{pid}}`

View File

@@ -1,28 +1,28 @@
# du
> 磁盘使用率:估计和汇总文件目录空间使用
> 更多信息:<https://keith.github.io/xcode-man-pages/du.1.html>.
> 磁盘使用情况:估算和总结文件目录空间使用情况
> 更多信息:<https://keith.github.io/xcode-man-pages/du.1.html>
- 给定单位KiB/MiB/GiB列出目录和所有子目录的大小:
- 列出给定单位KiB/MiB/GiB下的目录及其任何子目录的大小:
`du -{{k|m|g}} {{目标文件夹}}`
`du -{{k|m|g}} {{path/to/directory}}`
- 以可读形式列出目录任何子目录的大小(即自动为转换为选择的适当单位 kb|mb|gb
-人类可读形式列出目录及其任何子目录的大小(即自动选择每个大小的适当单位
`du -h {{目标文件夹}}`
`du -h {{path/to/directory}}`
- 可读单位显示目录大小
- 显示单个目录的大小,以人类可读单位表示
`du -sh {{目标文件夹}}`
`du -sh {{path/to/directory}}`
- 列出目录及其所有文件和目录可读大小:
- 列出目录及其所有文件和目录内的人类可读大小:
`du -ah {{目标文件夹}}`
`du -ah {{path/to/directory}}`
- 列出一个目录和任何子目录的可读大小,最深可达 n 级
- 列出目录及其任何子目录的人类可读大小,最多深入 N 层
`du -h -d {{N}} {{目标文件夹}}`
`du -h -d {{2}} {{path/to/directory}}`
- 列出当前目录子目录中所有.jpg 文件的可读大小,并在末尾显示累计总数
- 列出当前目录子目录中所有 `.jpg` 文件的人类可读大小,并在最后显示累积总和
`du -ch {{*/*.jpg}}`
`du -ch {{*/*.jpg}}`

View File

@@ -1,28 +1,28 @@
# duti
> 在 macOS 上为文档类型和网页设置默认打开的应用程序。
> 更多信息:<https://github.com/moretension/duti>.
> 在 macOS 上为文档类型和 URL 方案设置默认应用程序。
> 更多信息:<https://github.com/moretension/duti>
- 将 Safari 设置为 HTML 文档的默认打开程序:
- 将 Safari 设置为 HTML 文档的默认处理程序:
`duti -s {{com.apple.Safari}} {{public.html}} all`
-vlc 设置为扩展名为.m4v 的文件的默认查看器:
-VLC 设置为 `.m4v` 扩展名文件的默认查看器:
`duti -s {{org.videolan.vlc}} {{m4v}} viewer`
- 将 Finder 设置为 ftp:// URL 访问的应用
- 将 Finder 设置为 ftp:// URL 方案的默认处理程序
`duti -s {{com.apple.Finder}} "{{ftp}}"`
- 显示有关给定扩展名的默认应用程序信息:
- 显示给定扩展名的默认应用程序信息:
`duti -x {{ext}}`
- 显示给定 UTI 对应默认处理程序:
- 显示给定 UTI 默认处理程序:
`duti -d {{uti}}`
- 显示给定 UTI 对应所有处理程序:
- 显示给定 UTI 所有处理程序:
`duti -l {{uti}}`
`duti -l {{uti}}`

25
pages.zh/osx/ed.md Normal file
View File

@@ -0,0 +1,25 @@
# ed
> 原始的 Unix 文本编辑器。
> 另见:`awk``sed`。
> 更多信息:<https://www.gnu.org/software/ed/manual/ed_manual.html>。
- 启动一个交互式编辑器会话,创建一个空文档:
`ed`
- 启动一个交互式编辑器会话,创建一个空文档并指定 [p]rompt
`ed -p '> '`
- 启动一个交互式编辑器会话,创建一个空文档,并且不显示诊断信息、字节计数和 '!' 提示:
`ed -s`
- 编辑一个特定文件(这将显示加载文件的字节计数):
`ed {{path/to/file}}`
- 用特定替换字符串替换所有行中的某个字符串:
`,s/{{regular_expression}}/{{replacement}}/g`

17
pages.zh/osx/emond.md Normal file
View File

@@ -0,0 +1,17 @@
# emond
> 事件监控服务,接受来自各种服务的事件,通过简单的规则引擎处理这些事件,并采取相应的行动。
> 这些行动可以运行命令、发送电子邮件或短信。
> 更多信息:<https://keith.github.io/xcode-man-pages/emond.8.html>。
- 启动守护进程:
`emond`
- 通过指定文件或目录的路径为 emond 指定要处理的规则:
`emond -r {{path/to/file_or_directory}}`
- 使用特定的配置文件:
`emond -c {{path/to/config_file}}`

24
pages.zh/osx/fdesetup.md Normal file
View File

@@ -0,0 +1,24 @@
# fdesetup
> 设置和检索与 FileVault 相关的信息。
> 更多信息:<https://keith.github.io/xcode-man-pages/fdesetup.8.html>。
- 列出当前启用 FileVault 的用户:
`sudo fdesetup list`
- 获取当前 FileVault 状态:
`fdesetup status`
- 添加启用 FileVault 的用户:
`sudo fdesetup add -usertoadd {{user1}}`
- 启用 FileVault
`sudo fdesetup enable`
- 禁用 FileVault
`sudo fdesetup disable`

View File

@@ -0,0 +1,9 @@
# filecoordinationd
> 协调多个进程对文件的访问(`NSFileCoordinator``NSFilePresenter`)。
> 不应手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/filecoordinationd.8.html>。
- 启动守护进程:
`filecoordinationd`

20
pages.zh/osx/fileicon.md Normal file
View File

@@ -0,0 +1,20 @@
# fileicon
> 管理自定义文件和文件夹图标。
> 更多信息:<https://github.com/mklement0/fileicon>。
- 为特定文件或目录设置自定义图标:
`fileicon set {{path/to/file_or_directory}} {{path/to/icon_file.png}}`
- 从特定文件或目录中移除自定义图标:
`fileicon rm {{path/to/file_or_directory}}`
- 将文件或目录的自定义图标保存为 `.icns` 文件到当前目录:
`fileicon get {{path/to/file_or_directory}}`
- 测试特定文件或目录是否有自定义图标:
`fileicon test {{path/to/file_or_directory}}`

9
pages.zh/osx/fontd.md Normal file
View File

@@ -0,0 +1,9 @@
# fontd
> 使字体可用于系统。
> 不应手动调用。
> 更多信息:<https://keith.github.io/xcode-man-pages/fontd.8.html>。
- 启动守护进程:
`fontd`

View File

@@ -1,21 +1,21 @@
# fsck
> 检查或修复文件系统的完整性运行命令时应卸载文件系统。
> 它是一个包装器,包含 `fsck_hfs`, `fsck_apfs`, `fsck_msdos`, `fsck_exfat`, `fsck_udf` 作为可选
> 更多信息:<https://keith.github.io/xcode-man-pages/fsck.8.html>.
> 检查文件系统的完整性或修复它。在运行命令时文件系统应处于未挂载状态
> 它是一个包装器,根据需要调用 `fsck_hfs``fsck_apfs``fsck_msdos``fsck_exfat` `fsck_udf`。
> 更多信息:<https://keith.github.io/xcode-man-pages/fsck.8.html>
- 检查文件系统 /dev/sda,报告损坏的块:
- 检查文件系统 `/dev/sdX`,报告任何损坏的块:
`fsck {{/dev/sda}}`
`fsck {{/dev/sdX}}`
-文件系统 /dev/sda 是干净的时才检查它,报告任何损坏的块并以交互方式让用户选择修复每个
-文件系统干净时检查 `/dev/sdX`,报告任何损坏的块并让用户互动选择修复每个:
`fsck -f {{/dev/sda}}`
`fsck -f {{/dev/sdX}}`
-文件系统 /dev/sda 干净时才检查它,报告任何损坏的块并自动修复它们:
-文件系统干净时检查 `/dev/sdX`,报告任何损坏的块并自动修复它们:
`fsck -fy {{/dev/sda}}`
`fsck -fy {{/dev/sdX}}`
- 检查文件系统 /dev/sda, 报告是否已完全卸载:
- 检查文件系统 `/dev/sdX`报告是否已被干净地卸载:
`fsck -q {{/dev/sda}}`
`fsck -q {{/dev/sdX}}`

16
pages.zh/osx/ftxdiff.md Normal file
View File

@@ -0,0 +1,16 @@
# ftxdiff
> 比较两种字体之间的差异。
> 更多信息请访问: <https://developer.apple.com/fonts>。
- 将差异输出到特定文本文件:
`ftxdiff --output {{path/to/fontdiff_file.txt}} {{path/to/font_file1.ttc}} {{path/to/font_file2.ttc}}`
- 在输出中包含字形名称:
`ftxdiff --include-glyph-names`
- 在输出中包含Unicode名称
`ftxdiff --include-unicode-names`

View File

@@ -1,7 +1,7 @@
# g[
> 这是 `-p linux [` 命令的一个别名。
> 此命令是 GNU `[` 的别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux [`
`tldr -p linux [`

View File

@@ -1,7 +1,7 @@
# gawk
> 这是 `-p linux awk` 命令的一个别名。
> 此命令是 GNU `awk` 的别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux awk`
`tldr -p linux awk`

View File

@@ -1,7 +1,7 @@
# gb2sum
> 这是 `-p linux b2sum` 命令的一个别名。
> 此命令是GNU `b2sum` 别名。
- 原命令的文档
- 查看原命令的文档:
`tldr -p linux b2sum`
`tldr -p linux b2sum`

View File

@@ -1,7 +1,7 @@
# gbase32
> 这是 `-p linux base32` 命令的一个别名。
> 此命令是GNU `base32`别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux base32`
`tldr -p linux base32`

View File

@@ -1,7 +1,7 @@
# gbase64
> 这是 `-p linux base64` 命令的一个别名。
> 此命令是GNU `base64` 别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux base64`
`tldr -p linux base64`

View File

@@ -1,7 +1,7 @@
# gbasename
> 这是 `-p linux basename` 命令的一个别名。
> 此命令是 GNU `basename` 别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux basename`
`tldr -p linux basename`

View File

@@ -1,7 +1,7 @@
# gbasenc
> 这是 `-p linux basenc` 命令的一个别名。
> 此命令是 GNU `basenc` 别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux basenc`
`tldr -p linux basenc`

View File

@@ -1,7 +1,7 @@
# gcat
> 这是 `-p linux cat` 命令的一个别名。
> 此命令是 GNU `cat` 的别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux cat`
`tldr -p linux cat`

View File

@@ -1,7 +1,7 @@
# gchcon
> 这是 `-p linux chcon` 命令的一个别名。
> 此命令是GNU `chcon` 别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux chcon`
`tldr -p linux chcon`

View File

@@ -1,7 +1,7 @@
# gchgrp
> 这是 `-p linux chgrp` 命令的一个别名。
> 此命令是 GNU `chgrp` 别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux chgrp`
`tldr -p linux chgrp`

View File

@@ -1,7 +1,7 @@
# gchmod
> 这是 `-p linux chmod` 命令的一个别名。
> 该命令是 GNU `chmod` 别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux chmod`
`tldr -p linux chmod`

View File

@@ -1,7 +1,7 @@
# gchown
> 这是 `-p linux chown` 命令的一个别名。
> 此命令是 GNU `chown` 别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux chown`
`tldr -p linux chown`

View File

@@ -1,7 +1,7 @@
# gchroot
> 这是 `-p linux chroot` 命令的一个别名。
> 此命令是 GNU `chroot` 别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux chroot`
`tldr -p linux chroot`

View File

@@ -1,7 +1,7 @@
# gcksum
> 这是 `-p linux cksum` 命令的一个别名。
> 此命令是 GNU `cksum` 别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux cksum`
`tldr -p linux cksum`

View File

@@ -1,7 +1,7 @@
# gcomm
> 这是 `-p linux comm` 命令的一个别名。
> 该命令是GNU `comm`的别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux comm`
`tldr -p linux comm`

View File

@@ -1,7 +1,7 @@
# gcp
> 这是 `-p linux cp` 命令的一个别名。
> 此命令是 GNU `cp` 的别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux cp`
`tldr -p linux cp`

View File

@@ -0,0 +1,37 @@
# gcrane 自动完成
> 为指定的 shell 生成 gcrane 的自动完成脚本。
> 可用的 shell 包括 `bash`、`fish`、`powershell` 和 `zsh`。
> 更多信息:<https://github.com/google/go-containerregistry/blob/main/cmd/gcrane/README.md>。
- 为您的 shell 生成自动完成脚本:
`gcrane completion {{shell_name}}`
- 禁用完成描述:
`gcrane completion {{shell_name}} --no-descriptions`
- 在当前 shell 会话中加载完成bash/zsh
`source <(gcrane completion bash/zsh)>`
- 在当前 shell 会话中加载完成fish
`gcrane completion fish | source`
- 为每个新会话加载完成bash
`gcrane completion bash > $(brew --prefix)/etc/bash_completion.d/gcrane`
- 为每个新会话加载完成zsh
`gcrane completion zsh > $(brew --prefix)/share/zsh/site-functions/_gcrane`
- 为每个新会话加载完成fish
`gcrane completion fish > ~/.config/fish/completions/gcrane.fish`
- 显示帮助:
`gcrane completion {{shell_name}} {{-h|--help}}`

View File

@@ -1,7 +1,7 @@
# gcsplit
> 这是 `-p linux csplit` 命令的一个别名。
> 此命令是 GNU `csplit` 别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux csplit`
`tldr -p linux csplit`

View File

@@ -1,7 +1,7 @@
# gcut
> 这是 `-p linux cut` 命令的一个别名。
> 此命令是GNU `cut` 的别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux cut`
`tldr -p linux cut`

View File

@@ -1,7 +1,7 @@
# gdate
> 这是 `-p linux date` 命令的一个别名。
> 该命令是 GNU `date` 别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux date`
`tldr -p linux date`

View File

@@ -1,7 +1,7 @@
# gdd
> 这是 `-p linux dd` 命令的一个别名。
> 此命令是 GNU `dd` 的别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux dd`
`tldr -p linux dd`

View File

@@ -1,7 +1,7 @@
# gdf
> 这是 `-p linux df` 命令的一个别名。
> 此命令是 GNU `df` 的别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux df`
`tldr -p linux df`

View File

@@ -1,7 +1,7 @@
# gdir
> 这是 `-p linux dir` 命令的一个别名。
> 此命令是 GNU `dir` 的别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux dir`
`tldr -p linux dir`

View File

@@ -1,7 +1,7 @@
# gdircolors
> 这是 `-p linux dircolors` 命令的一个别名。
> 此命令是 GNU `dircolors` 别名。
- 命令的文档
- 查看原始命令的文档:
`tldr -p linux dircolors`
`tldr -p linux dircolors`

Some files were not shown because too many files have changed in this diff Show More