1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

*: normalize colons (#7913)

This commit is contained in:
Seth Falco 2022-03-27 07:25:15 +02:00 committed by GitHub
parent f63fedd585
commit 27ff55fc2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
88 changed files with 144 additions and 144 deletions

View file

@ -15,6 +15,6 @@
`am start -a {{android.intent.action.MAIN}} -c {{android.intent.category.HOME}}` `am start -a {{android.intent.action.MAIN}} -c {{android.intent.category.HOME}}`
- 将意图转换为 URI: - 将意图转换为 URI
`am to-uri -a {{android.intent.action.VIEW}} -d {{tel:123}}` `am to-uri -a {{android.intent.action.VIEW}} -d {{tel:123}}`

View file

@ -7,15 +7,15 @@
`2to3 {{文件.py}}` `2to3 {{文件.py}}`
- 将 Python 2 文件转化为 Python 3: - 将 Python 2 文件转化为 Python 3
`2to3 --write {{文件.py}}` `2to3 --write {{文件.py}}`
- 将 Python 2 语言特性转化为 Python 3: - 将 Python 2 语言特性转化为 Python 3
`2to3 --write {{文件.py}} --fix={{raw_input}} --fix={{print}}` `2to3 --write {{文件.py}} --fix={{raw_input}} --fix={{print}}`
- 除了某个语言特性外将所有其他的 Python 2 语言特性转化为 Python 3: - 除了某个语言特性外将所有其他的 Python 2 语言特性转化为 Python 3
`2to3 --write {{文件.py}} --nofix={{has_key}} --nofix={{isinstance}}` `2to3 --write {{文件.py}} --nofix={{has_key}} --nofix={{isinstance}}`
@ -23,10 +23,10 @@
`2to3 --list-fixes` `2to3 --list-fixes`
- 将某一文件夹的所有 Python 2 文件转化为 Python 3: - 将某一文件夹的所有 Python 2 文件转化为 Python 3
`2to3 --output-dir={{Python 3 文件夹}} --write-unchanged-files --nobackups {{Python 2 文件夹}}` `2to3 --output-dir={{Python 3 文件夹}} --write-unchanged-files --nobackups {{Python 2 文件夹}}`
- 使用多线程运行 2to3: - 使用多线程运行 2to3
`2to3 --processes={{4}} --output-dir={{Python 3 文件夹}} --write --nobackups --no-diff {{Python 2 文件夹}}` `2to3 --processes={{4}} --output-dir={{Python 3 文件夹}} --write --nobackups --no-diff {{Python 2 文件夹}}`

View file

@ -7,15 +7,15 @@
`act -l` `act -l`
- 运行默认 event: - 运行默认 event
`act` `act`
- 运行指定 event: - 运行指定 event
`act {{事件类型}}` `act {{事件类型}}`
- 运行指定 action: - 运行指定 action
`act -a {{action_id}}` `act -a {{action_id}}`

View file

@ -3,7 +3,7 @@
> 安卓调试桥 -Install: 将应用安装包推送到 Android 模拟器或已连接的安卓设备。 > 安卓调试桥 -Install: 将应用安装包推送到 Android 模拟器或已连接的安卓设备。
> 更多信息:<https://developer.android.com/studio/command-line/adb>. > 更多信息:<https://developer.android.com/studio/command-line/adb>.
- 向模拟器/设备推送安卓 app: - 向模拟器/设备推送安卓 app
`adb install {{路径/到/应用.apk}}` `adb install {{路径/到/应用.apk}}`

View file

@ -7,7 +7,7 @@
`adb reverse --list` `adb reverse --list`
- 将 TCP 端口从安卓模拟器或设备中映射到 localhost: - 将 TCP 端口从安卓模拟器或设备中映射到 localhost
`adb reverse tcp:{{远程端口}} tcp:{{本地端口}}` `adb reverse tcp:{{远程端口}} tcp:{{本地端口}}`

View file

@ -12,11 +12,11 @@
`adb kill-server` `adb kill-server`
- 在目标模拟器 / 设备实例上开启一个远程 shell: - 在目标模拟器 / 设备实例上开启一个远程 shell
`adb shell` `adb shell`
- 将 Android 应用程序推送到模拟器 / 设备 : - 将 Android 应用程序推送到模拟器 / 设备
`adb install -r {{路径/到/应用.apk}}` `adb install -r {{路径/到/应用.apk}}`

View file

@ -3,11 +3,11 @@
> 一款全网广告拦截与反跟踪软件。 > 一款全网广告拦截与反跟踪软件。
> 更多信息:<https://github.com/AdguardTeam/AdGuardHome>. > 更多信息:<https://github.com/AdguardTeam/AdGuardHome>.
- 运行 AdGuard Home: - 运行 AdGuard Home
`AdGuardHome` `AdGuardHome`
- 使用给定的配置文件运行 AdGuard Home: - 使用给定的配置文件运行 AdGuard Home
`AdGuardHome --config {{给定的/配置文件.yaml}}` `AdGuardHome --config {{给定的/配置文件.yaml}}`

View file

@ -19,7 +19,7 @@
`ag -i -o {{ABC}}` `ag -i -o {{ABC}}`
- 在文件名包含"小红"的文件中寻找"小明": - 在文件名包含"小红"的文件中寻找"小明"
`ag {{小明}} -G {{小红}}` `ag {{小明}} -G {{小红}}`

View file

@ -24,6 +24,6 @@
`alias {{rm}}="{{rm -i}}"` `alias {{rm}}="{{rm -i}}"`
- 创建别名`la`来指代`ls -a`: - 创建别名 `la` 来指代 `ls -a`
`alias {{la}}="{{ls -a}}"` `alias {{la}}="{{ls -a}}"`

View file

@ -7,7 +7,7 @@
`apg` `apg`
- 生成密码,包含至少 1 个符号 (S), 1 个数字 (N), 1 个大写字母 (C), 1 个小写字母 (L): - 生成密码,包含至少 1 个符号 (S), 1 个数字 (N), 1 个大写字母 (C), 1 个小写字母 (L)
`apg -M SNCL` `apg -M SNCL`

View file

@ -4,7 +4,7 @@
> 参见 `atom`. > 参见 `atom`.
> 更多信息:<https://github.com/atom/apm>. > 更多信息:<https://github.com/atom/apm>.
- 下载包:http://atom.io/packages 和主题 http://atom.io/themes: - 下载包:http://atom.io/packages 和主题 http://atom.io/themes
`apm install {{包名}}` `apm install {{包名}}`

View file

@ -31,6 +31,6 @@
`asciinema cat {{文件路径}}.cast` `asciinema cat {{文件路径}}.cast`
- 从本地上传一个录屏到 asciinema.org: - 从本地上传一个录屏到 asciinema.org
`asciinema upload {{文件路径}}.cast` `asciinema upload {{文件路径}}.cast`

View file

@ -20,6 +20,6 @@
`atom --safe` `atom --safe`
- 在终端前台运行 Atom: - 在终端前台运行 Atom
`atom --foreground` `atom --foreground`

View file

@ -3,11 +3,11 @@
> 一个工具,用于检查 Python 代码中未被使用的引入和变量。 > 一个工具,用于检查 Python 代码中未被使用的引入和变量。
> 更多信息:<https://github.com/myint/autoflake>. > 更多信息:<https://github.com/myint/autoflake>.
- 移除指定文件中未使用的变量,并展示 diff: - 移除指定文件中未使用的变量,并展示 diff
`autoflake --remove-unused-variables {{文件.py}}` `autoflake --remove-unused-variables {{文件.py}}`
- 移除多个文件中未使用的引入,并展示 diffs: - 移除多个文件中未使用的引入,并展示 diffs
`autoflake --remove-all-unused-imports {{文件1.py}} {{文件2.py}} {{文件3.py}}` `autoflake --remove-all-unused-imports {{文件1.py}} {{文件2.py}} {{文件3.py}}`

View file

@ -4,7 +4,7 @@
> 兼容`sh`的命令行解释器。 > 兼容`sh`的命令行解释器。
> 更多信息:<https://gnu.org/software/bash/>. > 更多信息:<https://gnu.org/software/bash/>.
- 启动交互式 shell: - 启动交互式 shell
`bash` `bash`

View file

@ -24,10 +24,10 @@
`bower help {{指令}}` `bower help {{指令}}`
- 创建你的项目的 `bower.json`: - 创建你的项目的 `bower.json`
`bower init` `bower init`
- 安装时候指定依赖的版本号,并添加到 `bower.json`: - 安装时候指定依赖的版本号,并添加到 `bower.json`
`bower install {{local_name}}={{package}}#{{version}} --save` `bower install {{local_name}}={{package}}#{{version}} --save`

View file

@ -10,7 +10,7 @@
`mas install {{应用名}} {{应用 ID}}` `mas install {{应用名}} {{应用 ID}}`
- 显示所有已安装的应用程序及其应用 ID: - 显示所有已安装的应用程序及其应用 ID
`mas list` `mas list`

View file

@ -3,7 +3,7 @@
> Visual Studio Code. > Visual Studio Code.
> 更多信息:<https://github.com/microsoft/vscode>. > 更多信息:<https://github.com/microsoft/vscode>.
- 打开 VS Code: - 打开 VS Code
`code` `code`
@ -23,6 +23,6 @@
`code -d {{文件1}} {{文件2}}` `code -d {{文件1}} {{文件2}}`
- 用超级用户(sudo)权限打开 VS Code: - 用超级用户(sudo)权限打开 VS Code
`sudo code {{路径/文件或目录}} --user-data-dir` `sudo code {{路径/文件或目录}} --user-data-dir`

View file

@ -4,7 +4,7 @@
> 此命令也有关于其子命令的文件,例如:`docker run`. > 此命令也有关于其子命令的文件,例如:`docker run`.
> 更多信息:<https://docs.docker.com/engine/reference/commandline/cli/>. > 更多信息:<https://docs.docker.com/engine/reference/commandline/cli/>.
- 列出目前正在运行的 docker 容器: - 列出目前正在运行的 docker 容器
`docker ps` `docker ps`
@ -24,7 +24,7 @@
`docker pull {{镜像}}` `docker pull {{镜像}}`
- 从正在运行的容器内打开一个 shell: - 从正在运行的容器内打开一个 shell
`docker exec -it {{容器名称}} {{sh}}` `docker exec -it {{容器名称}} {{sh}}`

View file

@ -15,6 +15,6 @@
`etcd --name {{my_etcd_cluster}}` `etcd --name {{my_etcd_cluster}}`
- 启动单节点 etcd 集群,同时可以在这里看到大量监控指标 http://localhost:2379/debug/pprof/: - 启动单节点 etcd 集群,同时可以在这里看到大量监控指标 http://localhost:2379/debug/pprof/
`etcd --enable-pprof --metrics extensive` `etcd --enable-pprof --metrics extensive`

View file

@ -3,7 +3,7 @@
> 在当前 shell 中以单个命令的形式执行参数,并返回其结果。 > 在当前 shell 中以单个命令的形式执行参数,并返回其结果。
> 更多信息:<https://manned.org/eval>. > 更多信息:<https://manned.org/eval>.
- 使用 'foo' 做为参数调用 `echo`: - 使用 'foo' 做为参数调用 `echo`
`eval "{{echo foo}}"` `eval "{{echo foo}}"`

View file

@ -3,7 +3,7 @@
> 轻量级图像查看工具。 > 轻量级图像查看工具。
> 更多信息:<https://feh.finalrewind.org>. > 更多信息:<https://feh.finalrewind.org>.
- 查看本地图像或使用 URL: - 查看本地图像或使用 URL
`feh {{图片路径}}` `feh {{图片路径}}`

View file

@ -3,22 +3,22 @@
> 在命令行上使用 GitHub Gists. > 在命令行上使用 GitHub Gists.
> 更多信息:<https://cli.github.com/manual/gh_gist>. > 更多信息:<https://cli.github.com/manual/gh_gist>.
- 从一个以空格分隔的文件列表中创建一个新的 Gist: - 从一个以空格分隔的文件列表中创建一个新的 Gist
`gh gist create {{路径/文件}}` `gh gist create {{路径/文件}}`
- 创建一个带有描述的新 Gist: - 创建一个带有描述的新 Gist
`gh gist create {{文件名}} --desc "{{描述}}"` `gh gist create {{文件名}} --desc "{{描述}}"`
- 编辑一个 Gist: - 编辑一个 Gist
`gh gist edit {{id_或_url}}` `gh gist edit {{id_或_url}}`
- 列出当前登录用户所拥有的 Gist: - 列出当前登录用户所拥有的 Gist
`gh gist list --limit {{int}}` `gh gist list --limit {{int}}`
- 在默认浏览器中查看 Gist,且不渲染 Markdown: - 在默认浏览器中查看 Gist,且不渲染 Markdown
`gh gist view {{id_或_url}} --web --raw` `gh gist view {{id_或_url}} --web --raw`

View file

@ -3,7 +3,7 @@
> 使用`GPG`加密存档中的文件和目录。 > 使用`GPG`加密存档中的文件和目录。
> 更多信息:<https://www.gnupg.org/documentation/manuals/gnupg/gpg_002dzip.html>. > 更多信息:<https://www.gnupg.org/documentation/manuals/gnupg/gpg_002dzip.html>.
- 使用密码将一个目录加密为`archive.gpg`: - 使用密码将一个目录加密为`archive.gpg`
`gpg-zip --symmetric --output {{archive.gpg}} {{path/to/directory}}` `gpg-zip --symmetric --output {{archive.gpg}} {{path/to/directory}}`

View file

@ -8,7 +8,7 @@
`gpg2 --list-keys` `gpg2 --list-keys`
- 为指定的接收者加密指定的文件,将输出结果写到一个新的文件中,并附加`.gpg`: - 为指定的接收者加密指定的文件,将输出结果写到一个新的文件中,并附加 `.gpg`
`gpg2 --encrypt --recipient {{alice@example.com}} {{path/to/doc.txt}}` `gpg2 --encrypt --recipient {{alice@example.com}} {{path/to/doc.txt}}`

View file

@ -7,11 +7,11 @@
`logger {{消息内容}}` `logger {{消息内容}}`
- 从 stdin 获取输入并记录到系统日志 syslog: - 从 stdin 获取输入并记录到系统日志 syslog
`echo {{记录内容}} | logger` `echo {{记录内容}} | logger`
- 将输出发送到在给定端口上运行的远程系统日志服务器。默认端口为 514: - 将输出发送到在给定端口上运行的远程系统日志服务器。默认端口为 514
`echo {{记录内容}} | logger -h {{服务器名}} -P {{端口}}` `echo {{记录内容}} | logger -h {{服务器名}} -P {{端口}}`

View file

@ -7,6 +7,6 @@
`runit` `runit`
- 停止运行 runit: - 停止运行 runit
`kill --CONT {{runit 进程 id}}` `kill --CONT {{runit 进程 id}}`

View file

@ -16,6 +16,6 @@
`trap 'echo "检测到信号 {{SIGHUP}}"' {{SIGHUP}}` `trap 'echo "检测到信号 {{SIGHUP}}"' {{SIGHUP}}`
- 移除活动 trap: - 移除活动 trap
`trap - {{SIGHUP}} {{SIGINT}}` `trap - {{SIGHUP}} {{SIGINT}}`

View file

@ -11,6 +11,6 @@
`write {{testuser}} {{tty/5}}` `write {{testuser}} {{tty/5}}`
- 向伪终端 "/dev/pts/5" 上的用户 "johndoe" 发送信息 : - 向伪终端 "/dev/pts/5" 上的用户 "johndoe" 发送信息
`write {{johndoe}} {{pts/5}}` `write {{johndoe}} {{pts/5}}`

View file

@ -15,7 +15,7 @@
`adduser --home {{home 路径}} {{用户名}}` `adduser --home {{home 路径}} {{用户名}}`
- 创建一个新用户,并指定登录 shell: - 创建一个新用户,并指定登录 shell
`adduser --shell {{shell 路径}} {{用户名}}` `adduser --shell {{shell 路径}} {{用户名}}`

View file

@ -4,7 +4,7 @@
> 通过 IMAP 支持大多数现代电子邮件服务。 > 通过 IMAP 支持大多数现代电子邮件服务。
> 更多信息:<https://manned.org/alpine>. > 更多信息:<https://manned.org/alpine>.
- 正常打开 alpine: - 正常打开 alpine
`alpine` `alpine`
@ -12,6 +12,6 @@
`alpine {{邮箱地址}}` `alpine {{邮箱地址}}`
- 退出 alpine: - 退出 alpine
`'q' 然后 'y'` `'q' 然后 'y'`

View file

@ -3,6 +3,6 @@
> 在任何 GNU/Linux 操作系统上运行安卓应用。 > 在任何 GNU/Linux 操作系统上运行安卓应用。
> 更多信息:<https://manned.org/anbox>. > 更多信息:<https://manned.org/anbox>.
- 在应用管理器中运行 Anbox: - 在应用管理器中运行 Anbox
`anbox launch --package={{org.anbox.appmgr}} --component={{org.anbox.appmgr.AppViewActivity}}` `anbox launch --package={{org.anbox.appmgr}} --component={{org.anbox.appmgr.AppViewActivity}}`

View file

@ -4,7 +4,7 @@
> 主要用于汇编`gcc`的输出,以供链接器`ld`使用。 > 主要用于汇编`gcc`的输出,以供链接器`ld`使用。
> 更多信息:<https://manned.org/as>. > 更多信息:<https://manned.org/as>.
- 汇编一个文件,输出为 a.out: - 汇编一个文件,输出为 a.out
`as {{文件.s}}` `as {{文件.s}}`

View file

@ -15,7 +15,7 @@
`aspell dicts` `aspell dicts`
- 指定不同的语言(取 ISO 639 语言代码的 2 个字母)来运行 aspell: - 指定不同的语言(取 ISO 639 语言代码的 2 个字母)来运行 aspell
`aspell --lang={{cs}}` `aspell --lang={{cs}}`

View file

@ -23,7 +23,7 @@
`authconfig --update --enablenis` `authconfig --update --enablenis`
- 开启 Kerberos: - 开启 Kerberos
`authconfig --update --enablekrb5` `authconfig --update --enablekrb5`

View file

@ -11,7 +11,7 @@
`binwalk --extract --directory {{输出目录}} {{二进制文件}}` `binwalk --extract --directory {{输出目录}} {{二进制文件}}`
- 递归解压一个二进制文件并限制递归深度为 2: - 递归解压一个二进制文件并限制递归深度为 2
`binwalk --extract --matryoshka --depth {{2}} {{二进制文件}}` `binwalk --extract --matryoshka --depth {{2}} {{二进制文件}}`

View file

@ -3,7 +3,7 @@
> 用图形显示有关正在运行的进程的动态实时信息。类似于 `gtop``htop`. > 用图形显示有关正在运行的进程的动态实时信息。类似于 `gtop``htop`.
> 更多信息:<https://github.com/aristocratos/bpytop>. > 更多信息:<https://github.com/aristocratos/bpytop>.
- 运行 bpytop: - 运行 bpytop
`bpytop` `bpytop`

View file

@ -15,7 +15,7 @@
`sudo brctl del {{网桥名}}` `sudo brctl del {{网桥名}}`
- 向现有网桥添加接口: - 向现有网桥添加接口
`sudo brctl addif {{网桥名}} {{接口名}}` `sudo brctl addif {{网桥名}} {{接口名}}`

View file

@ -4,7 +4,7 @@
> 建议每月运行一次 scrub. > 建议每月运行一次 scrub.
> 更多信息:<https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-scrub>. > 更多信息:<https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-scrub>.
- 开始 scrub: - 开始 scrub
`sudo btrfs scrub start {{指向挂载点的路径}}` `sudo btrfs scrub start {{指向挂载点的路径}}`
@ -12,11 +12,11 @@
`sudo btrfs scrub status {{指向挂载点的路径}}` `sudo btrfs scrub status {{指向挂载点的路径}}`
- 取消正在进行的 scrub: - 取消正在进行的 scrub
`sudo btrfs scrub cancel {{指向挂载点的路径}}` `sudo btrfs scrub cancel {{指向挂载点的路径}}`
- 恢复先前取消的 scrub: - 恢复先前取消的 scrub
`sudo btrfs scrub resume {{指向挂载点的路径}}` `sudo btrfs scrub resume {{指向挂载点的路径}}`

View file

@ -16,10 +16,10 @@
`echo -e "{{red}}\n{{green}}\n{{blue}}" | dmenu > {{color.txt}}` `echo -e "{{red}}\n{{green}}\n{{blue}}" | dmenu > {{color.txt}}`
- 在特定的监视器上启动 `dmenu`: - 在特定的监视器上启动 `dmenu`
`ls | dmenu -m {{1}}` `ls | dmenu -m {{1}}`
- 在屏幕底部显示 `dmenu`: - 在屏幕底部显示 `dmenu`
`ls | dmenu -b` `ls | dmenu -b`

View file

@ -3,7 +3,7 @@
> 带有 gui 界面的 Screenshot 工具,支持基本的图像编辑,例如文本,形状,颜色和 imgur. > 带有 gui 界面的 Screenshot 工具,支持基本的图像编辑,例如文本,形状,颜色和 imgur.
> 更多信息:<https://flameshot.org>. > 更多信息:<https://flameshot.org>.
- 在 GUI 模式下启动 Flameshot: - 在 GUI 模式下启动 Flameshot
`flameshot launcher` `flameshot launcher`

View file

@ -11,6 +11,6 @@
`grub-install --target={{x86_64-efi}} --efi-directory={{path/to/efi_directory}} --bootloader-id={{GRUB}}` `grub-install --target={{x86_64-efi}} --efi-directory={{path/to/efi_directory}} --bootloader-id={{GRUB}}`
- 安装预置指定模块的 GRUB: - 安装预置指定模块的 GRUB
`grub-install --target={{x86_64-efi}} --efi-directory={{path/to/efi_directory}} --modules="{{part_gpt part_msdos}}"` `grub-install --target={{x86_64-efi}} --efi-directory={{path/to/efi_directory}} --modules="{{part_gpt part_msdos}}"`

View file

@ -3,7 +3,7 @@
> Konsole: KDE 终端模拟器。 > Konsole: KDE 终端模拟器。
> 更多信息:<https://konsole.kde.org>. > 更多信息:<https://konsole.kde.org>.
- 在特定目录中打开一个新的 Konsole: - 在特定目录中打开一个新的 Konsole
`konsole --workdir {{path/to/directory}}` `konsole --workdir {{path/to/directory}}`
@ -19,6 +19,6 @@
`konsole --background-mode` `konsole --background-mode`
- 使用紧急备冗配置文件打开 Konsole: - 使用紧急备冗配置文件打开 Konsole
`konsole --fallback-profile` `konsole --fallback-profile`

View file

@ -4,7 +4,7 @@
> 主要用于汇编 `gcc` 的输出以供 `ld` 使用。 > 主要用于汇编 `gcc` 的输出以供 `ld` 使用。
> 更多信息:<https://www.unix.com/man-page/osx/1/as/>. > 更多信息:<https://www.unix.com/man-page/osx/1/as/>.
- 汇编文件,将输出写入 a.out: - 汇编文件,将输出写入 a.out
`as {{文件.s}}` `as {{文件.s}}`

View file

@ -6,10 +6,10 @@
`brightness -l` `brightness -l`
- 设置亮度到 100%:: - 设置亮度到 100%:
`brightness {{1}}` `brightness {{1}}`
- 设置亮度到 50%:: - 设置亮度到 50%:
`brightness {{0.5}}` `brightness {{0.5}}`

View file

@ -7,11 +7,11 @@
`carthage update` `carthage update`
- 仅针对 IOS 平台,升级依赖文件 : - 仅针对 IOS 平台,升级依赖文件
`carthage update --platform ios` `carthage update --platform ios`
- 仅更新依赖,但不编译它们 : - 仅更新依赖,但不编译它们
`carthage update --no-build` `carthage update --no-build`
@ -19,6 +19,6 @@
`carthage bootstrap` `carthage bootstrap`
- 重新编译特定依赖项 : - 重新编译特定依赖项
`carthage build {{依赖包}}` `carthage build {{依赖包}}`

View file

@ -3,7 +3,7 @@
> 设置或显示系统日期。 > 设置或显示系统日期。
> 更多信息:<https://ss64.com/osx/date.html>. > 更多信息:<https://ss64.com/osx/date.html>.
- 使用默认区域设置的格式显示当前日期 : - 使用默认区域设置的格式显示当前日期
`date +"%c"` `date +"%c"`

View file

@ -4,7 +4,7 @@
> `launchd`加载放置在适当位置的基于 XML 的`*.plist`文件,并根据其定义的计划运行相应的命令。 > `launchd`加载放置在适当位置的基于 XML 的`*.plist`文件,并根据其定义的计划运行相应的命令。
> 更多信息:<https://manned.org/launchctl>. > 更多信息:<https://manned.org/launchctl>.
- 每当用户登录时,自动将 plist 文件加载到 `launchd` : - 每当用户登录时,自动将 plist 文件加载到 `launchd`
`launchctl load ~/Library/LaunchAgents/{{我的脚本}}.plist` `launchctl load ~/Library/LaunchAgents/{{我的脚本}}.plist`

View file

@ -14,6 +14,6 @@
`networksetup -getairportnetwork {{en0}}` `networksetup -getairportnetwork {{en0}}`
- 连接到给定的 Wi-Fi 网络 Connect to a particular Wi-Fi network: - 连接到给定的 Wi-Fi 网络 Connect to a particular Wi-Fi network
`networksetup -setairportnetwork {{en0}} "{{无线网 SSID}}" {{密码}}` `networksetup -setairportnetwork {{en0}} "{{无线网 SSID}}" {{密码}}`

View file

@ -2,7 +2,7 @@
> Swift 和 Objective-C Cocoa 项目的依赖关系管理。 > Swift 和 Objective-C Cocoa 项目的依赖关系管理。
- 为当前项目初始化包含默认内容的 podfile: - 为当前项目初始化包含默认内容的 podfile
`pod init` `pod init`
@ -10,7 +10,7 @@
`pod install` `pod install`
- 列出所有可用的 pod: - 列出所有可用的 pod
`pod list` `pod list`
@ -26,6 +26,6 @@
`pod update {{pod_名}}` `pod update {{pod_名}}`
- 从 Xcode 项目中删除 CocoaPods: - 从 Xcode 项目中删除 CocoaPods
`pod deintegrate {{xcode_项目}}` `pod deintegrate {{xcode_项目}}`

View file

@ -19,7 +19,7 @@
`sips --resampleWidth {{960}} {{目标 / 文件夹 / 所有图片文件}}` `sips --resampleWidth {{960}} {{目标 / 文件夹 / 所有图片文件}}`
- 将图像从 CMYK 转换为 RGB: - 将图像从 CMYK 转换为 RGB
`sips --matchTo '/System/Library/ColorSync/Profiles/Generic RGB Profile.icc' {{目标 / 文件夹 / 图片。扩展}} {{目标 / 文件夹 / 输出文件夹}}` `sips --matchTo '/System/Library/ColorSync/Profiles/Generic RGB Profile.icc' {{目标 / 文件夹 / 图片。扩展}} {{目标 / 文件夹 / 输出文件夹}}`

View file

@ -7,7 +7,7 @@
`textutil -info {{foo.rtf}}` `textutil -info {{foo.rtf}}`
- 将 `foo.rtf` 转换为 `foo.html`: - 将 `foo.rtf` 转换为 `foo.html`
`textutil -convert {{html}} {{foo.rtf}}` `textutil -convert {{html}} {{foo.rtf}}`
@ -15,10 +15,10 @@
`textutil {{foo.rtf}} -convert {{txt}}` `textutil {{foo.rtf}} -convert {{txt}}`
- 将 `foo.txt` 转换为 `foo.rtf`, 字体使用 Times 字号 10: - 将 `foo.txt` 转换为 `foo.rtf`, 字体使用 Times 字号 10
`textutil -convert {{rtf}} -font {{Times}} -fontsize {{10}} {{foo.txt}}` `textutil -convert {{rtf}} -font {{Times}} -fontsize {{10}} {{foo.txt}}`
- 加载当前目录中的所有 RTF 文件,连接其内容,并将结果作为 `index.html` 写入,HTML 标题设置为"多个文件": - 加载当前目录中的所有 RTF 文件,连接其内容,并将结果作为 `index.html` 写入,HTML 标题设置为"多个文件"
`textutil -cat {{html}} -title "多个文件" -output {{index.html}} *.rtf` `textutil -cat {{html}} -title "多个文件" -output {{index.html}} *.rtf`

View file

@ -10,6 +10,6 @@
`xcodebuild -target {{目标名}} -configuration {{配置名}} clean build SYMROOT={{SYMROOT_路径}}` `xcodebuild -target {{目标名}} -configuration {{配置名}} clean build SYMROOT={{SYMROOT_路径}}`
- 显示 SDK: - 显示 SDK
`xcodebuild -showsdks` `xcodebuild -showsdks`

View file

@ -2,7 +2,7 @@
> 用 Xcode 打开要编辑的文件。 > 用 Xcode 打开要编辑的文件。
- 用 Xcode 打开文件 : - 用 Xcode 打开文件
`xed {{文件名}}` `xed {{文件名}}`

View file

@ -19,6 +19,6 @@
`choco new {{包名}} --output-directory {{指定的目录路径}}` `choco new {{包名}} --output-directory {{指定的目录路径}}`
- 创建一个新的包并指定其 32 位版和 64 位版的安装 URL: - 创建一个新的包并指定其 32 位版和 64 位版的安装 URL
`choco new {{package_name}} url="{{url}}" url64="{{url}}"` `choco new {{package_name}} url="{{url}}" url64="{{url}}"`

View file

@ -3,7 +3,7 @@
> 将 nuspec 打包到已编译的 nupkg. > 将 nuspec 打包到已编译的 nupkg.
> 更多信息:<https://chocolatey.org/docs/commands-pack>. > 更多信息:<https://chocolatey.org/docs/commands-pack>.
- 将 nuspec 打包到已编译的 nupkg: - 将 nuspec 打包到已编译的 nupkg
`choco pack {{nuspec 的路径}}` `choco pack {{nuspec 的路径}}`

View file

@ -11,7 +11,7 @@
`cmd /c "{{命令}}"` `cmd /c "{{命令}}"`
- 执行一个指定的命令,之后进入一个交互式 shell: - 执行一个指定的命令,之后进入一个交互式 shell
`cmd /k "{{命令}}"` `cmd /k "{{命令}}"`

View file

@ -23,11 +23,11 @@
`pathping {{主机名}} -q {{查询语句}}` `pathping {{主机名}} -q {{查询语句}}`
- 强制使用 IPV4: - 强制使用 IPV4
`pathping {{主机名}} -4` `pathping {{主机名}} -4`
- 强制使用 IPV6: - 强制使用 IPV6
`pathping {{主机名}} -6` `pathping {{主机名}} -6`

View file

@ -11,7 +11,7 @@
`reg add {{键名}} /v {{值}}` `reg add {{键名}} /v {{值}}`
- Add a new value with specific data: - Add a new value with specific data
`reg add {{键名}} /d {{数据}}` `reg add {{键名}} /d {{数据}}`

View file

@ -4,22 +4,22 @@
> 如果 Scoop 不知道 bucket 在哪里,则必须指定其存储库位置。 > 如果 Scoop 不知道 bucket 在哪里,则必须指定其存储库位置。
> 更多信息:<https://github.com/lukesampson/scoop/wiki/Buckets>. > 更多信息:<https://github.com/lukesampson/scoop/wiki/Buckets>.
- 列出所有正在使用的 bucket: - 列出所有正在使用的 bucket
`scoop bucket list` `scoop bucket list`
- 列出所有已知 bucket: - 列出所有已知 bucket
`scoop bucket known` `scoop bucket known`
- 按名称添加一个已知 bucket: - 按名称添加一个已知 bucket
`scoop bucket add {{名称}}` `scoop bucket add {{名称}}`
- 通过名称和 Git 存储库 URL 添加未知 bucket: - 通过名称和 Git 存储库 URL 添加未知 bucket
`scoop bucket add {{名称}} {{https://example.com/repository.git}}` `scoop bucket add {{名称}} {{https://example.com/repository.git}}`
- 按名称删除 bucket: - 按名称删除 bucket
`scoop bucket rm {{名称}}` `scoop bucket rm {{名称}}`

View file

@ -3,6 +3,6 @@
> 显示当前 Windows 或 MS-DOS 的版本号。 > 显示当前 Windows 或 MS-DOS 的版本号。
> 更多信息:<https://docs.microsoft.com/windows-server/administration/windows-commands/ver>. > 更多信息:<https://docs.microsoft.com/windows-server/administration/windows-commands/ver>.
- Display the current version number: - Display the current version number
`ver` `ver`

View file

@ -19,6 +19,6 @@
`whoami /upn` `whoami /upn`
- 显示当前用户的登录 id: - 显示当前用户的登录 id
`whoami /logonid` `whoami /logonid`

View file

@ -15,6 +15,6 @@
`am start -a {{android.intent.action.MAIN}} -c {{android.intent.category.HOME}}` `am start -a {{android.intent.action.MAIN}} -c {{android.intent.category.HOME}}`
- 將意圖(intent)轉換為 URI: - 將意圖(intent)轉換為 URI
`am to-uri -a {{android.intent.action.VIEW}} -d {{tel:123}}` `am to-uri -a {{android.intent.action.VIEW}} -d {{tel:123}}`

View file

@ -3,7 +3,7 @@
> Visual Studio Code. > Visual Studio Code.
> 更多資訊:<https://github.com/microsoft/vscode>. > 更多資訊:<https://github.com/microsoft/vscode>.
- 執行 VS Code: - 執行 VS Code
`code` `code`
@ -23,6 +23,6 @@
`code -d {{檔案一}} {{檔案二}}` `code -d {{檔案一}} {{檔案二}}`
- 用超級使用者 (sudo) 權限執行 VS Code: - 用超級使用者 (sudo) 權限執行 VS Code
`sudo code {{檔案或目錄/完整/路徑}} --user-data-dir` `sudo code {{檔案或目錄/完整/路徑}} --user-data-dir`

View file

@ -24,7 +24,7 @@
`docker pull {{映像檔}}` `docker pull {{映像檔}}`
- 從正在運行的容器內打開一個 shell: - 從正在運行的容器內打開一個 shell
`docker exec -it {{容器名稱}} {{sh}}` `docker exec -it {{容器名稱}} {{sh}}`

View file

@ -11,7 +11,7 @@
`cmd /c "{{命令}}"` `cmd /c "{{命令}}"`
- 執行一個指定的命令,之後進入一個互動式 shell: - 執行一個指定的命令,之後進入一個互動式 shell
`cmd /k "{{命令}}"` `cmd /k "{{命令}}"`