Преглед на файлове

aurvote, b*: add Chinese translation (#6413)

* aurvote: add Chinese translation

* balooctl: add Chinese translation

* beep: add Chinese translation

* betterlockscreen: add Chinese translation

* binwalk: add Chinese translation

* binwise: add Chinese translation

* blkdiscard: add Chinese translation

* blkid: add Chinese translation

* bluetoothctl: add Chinese translation

* bluetoothd: add Chinese translation

* bmon: add Chinese translation

* bpftrace: add Chinese translation

* bpytop: add Chinese translation

* brctl: add Chinese translation

* brew: add Chinese translation

* commit suggestion
千玄子 преди 3 години
родител
ревизия
48b9a13502

+ 25 - 0
pages.zh/linux/aurvote.md

@@ -0,0 +1,25 @@
+# aurvote
+
+> 为 AUR 中的包投票。
+> 为了投票成功,文件 `~/.config/aurvote` 必须存在并包含你的 AUR 身份凭证。
+> 更多信息:<https://github.com/archlinuxfr/aurvote>.
+
+- 交互式创建包含你的 AUR 用户名和密码的 `~/.config/aurvote` 文件:
+
+`aurvote --configure`
+
+- 为一个或多个 AUR 包投票:
+
+`aurvote {{package1 package2 ...}}`
+
+- 为一个或多个 AUR 包取消投票:
+
+`aurvote --unvote {{package1 package2 ...}}`
+
+- 检查一个或多个 AUR 包是否已投票:
+
+`aurvote --check {{package1 package2 ...}}`
+
+- 查看 `aurvote` 的帮助信息:
+
+`aurvote --help`

+ 36 - 0
pages.zh/linux/balooctl.md

@@ -0,0 +1,36 @@
+# balooctl
+
+> KDE Plasma 的文件索引和搜索框架。
+> 更多信息:<https://wiki.archlinux.org/index.php/Baloo>.
+
+- 查看帮助:
+
+`balooctl`
+
+- 显示索引器状态:
+
+`balooctl status`
+
+- 开启或关闭文件索引器:
+
+`balooctl {{enable|disable}}`
+
+- 清除索引数据库:
+
+`balooctl purge`
+
+- 挂起文件索引器:
+
+`balooctl suspend`
+
+- 恢复文件索引器:
+
+`balooctl resume`
+
+- 显示 Baloo 占用的磁盘空间大小:
+
+`balooctl indexSize`
+
+- 检查未索引的文件并索引它们:
+
+`balooctl check`

+ 24 - 0
pages.zh/linux/beep.md

@@ -0,0 +1,24 @@
+# beep
+
+> 让电脑扬声器发出哔哔声的实用程序。
+> 更多信息:<https://github.com/spkr-beep/beep>.
+
+- 播放哔哔声:
+
+`beep`
+
+- 重复播放哔哔声:
+
+`beep -r {{重复次数}}`
+
+- 指定频率(Hz)和持续时间(毫秒)播放哔哔声:
+
+`beep -f {{频率}} -l {{持续时间}}`
+
+- 将每个新的频率和持续时间作为单独的哔哔声播放:
+
+`beep -f {{频率}} -l {{持续时间}} -n -f {{频率}} -l {{持续时间}}`
+
+- 播放 C 大调:
+
+`beep -f 262 -n -f 294 -n -f 330 -n -f 349 -n -f 392 -n -f 440 -n -f 494 -n -f 523`

+ 20 - 0
pages.zh/linux/betterlockscreen.md

@@ -0,0 +1,20 @@
+# betterlockscreen
+
+> 简洁的锁屏程序。
+> 更多信息:<https://github.com/pavanjadhaw/betterlockscreen>.
+
+- 锁定屏幕:
+
+`betterlockscreen --lock`
+
+- 更换锁屏背景:
+
+`betterlockscreen -u {{图片.png}}`
+
+- 锁屏并显示一些自定义文本:
+
+`betterlockscreen -l pixel -t "{{自定义锁屏文本}}"`
+
+- 锁屏并自定义显示屏关闭超时秒数:
+
+`betterlockscreen --off {{5}} -l`

+ 28 - 0
pages.zh/linux/binwalk.md

@@ -0,0 +1,28 @@
+# binwalk
+
+> 固件分析工具。
+> 更多信息:<https://github.com/ReFirmLabs/binwalk>.
+
+- 扫描一个二进制文件:
+
+`binwalk {{二进制文件}}`
+
+- 解压一个二进制文件并指定输出目录:
+
+`binwalk --extract --directory {{输出目录}} {{二进制文件}}`
+
+- 递归解压一个二进制文件并限制递归深度为 2:
+
+`binwalk --extract --matryoshka --depth {{2}} {{二进制文件}}`
+
+- 解压一个二进制文件并指定文件签名:
+
+`binwalk --dd '{{png image:png}}' {{二进制文件}}`
+
+- 分析一个二进制文件的熵,用与文件相同的名字和 `.png` 后缀保存绘图:
+
+`binwalk --entropy --save {{二进制文件}}`
+
+- 在单条命令中组合熵、签名和操作码分析:
+
+`binwalk --entropy --signature --opcodes {{二进制文件}}`

+ 20 - 0
pages.zh/linux/bitwise.md

@@ -0,0 +1,20 @@
+# bitwise
+
+> 支持动态基数转换和位操作的多基数交互式计算器。
+> 更多信息:<https://github.com/mellowcandle/bitwise>.
+
+- 使用交互模式运行:
+
+`bitwise`
+
+- 从十进制转换:
+
+`bitwise {{12345}}`
+
+- 从十六进制转换:
+
+`bitwise {{0x563d}}`
+
+- 转换 C 风格的计算:
+
+`bitwise "{{0x123 + 0x20 - 30 / 50}}"`

+ 16 - 0
pages.zh/linux/blkdiscard.md

@@ -0,0 +1,16 @@
+# blkdiscard
+
+> 丢弃存储设备上的设备扇区。对 SSD 有用。
+> 更多信息:<https://manned.org/blkdiscard>.
+
+- 丢弃设备上的所有扇区,删除所有数据:
+
+`blkdiscard /dev/{{设备名}}`
+
+- 安全地丢弃设备上的所有块,删除所有数据:
+
+`blkdiscard --secure /dev/{{设备名}}`
+
+- 丢弃设备的前 100 MB:
+
+`blkdiscard --length {{100MB}} /dev/{{设备名}}`

+ 12 - 0
pages.zh/linux/blkid.md

@@ -0,0 +1,12 @@
+# blkid
+
+> 列出所有已识别的分区及其通用唯一标识符 (UUID)。
+> 更多信息:<https://manned.org/blkid>.
+
+- 列出所有分区:
+
+`sudo blkid`
+
+- 列出表中的所有分区,包括当前挂载点:
+
+`sudo blkid -o list`

+ 28 - 0
pages.zh/linux/bluetoothctl.md

@@ -0,0 +1,28 @@
+# bluetoothctl
+
+> 从命令行管理蓝牙设备。
+> 更多信息:<https://www.npmjs.com/package/bluetoothctl>.
+
+- 进入 bluetoothctl 外壳程序:
+
+`bluetoothctl`
+
+- 列出设备:
+
+`bluetoothctl -- devices`
+
+- 与一个设备配对:
+
+`bluetoothctl -- pair {{mac 地址}}`
+
+- 移除一个设备:
+
+`bluetoothctl -- remove {{mac 地址}}`
+
+- 连接一个已配对的设备:
+
+`bluetoothctl -- connect {{mac 地址}}`
+
+- 断开一个已配对的设备:
+
+`bluetoothctl -- disconnect {{mac 地址}}`

+ 24 - 0
pages.zh/linux/bluetoothd.md

@@ -0,0 +1,24 @@
+# bluetoothd
+
+> 管理蓝牙设备的守护进程。
+> 更多信息:<https://manned.org/bluetoothd>.
+
+- 启动守护进程:
+
+`bluetoothd`
+
+- 启动守护进程,日志输出到标准输出:
+
+`bluetoothd --nodetach`
+
+- 指定一个配置文件启动守护进程(默认是 `/etc/bluetooth/main.conf`):
+
+`bluetoothd --configfile {{配置文件}}`
+
+- 启动守护进程并将详细信息输出到标准错误:
+
+`bluetoothd --debug`
+
+- 使用来自 bluetoothd 或插件源中特定文件启动守护进程并输出详细信息:
+
+`bluetoothd --debug={{文件一}}:{{文件二}}:{{文件三}}`

+ 20 - 0
pages.zh/linux/bmon.md

@@ -0,0 +1,20 @@
+# bmon
+
+> 监控带宽并捕获网络相关统计信息。
+> 更多信息:<https://github.com/tgraf/bmon>.
+
+- 显示所有接口的列表:
+
+`bmon -a`
+
+- 以每秒位数显示数据传输速率:
+
+`bmon -b`
+
+- 设置策略以定义显示哪些网络接口:
+
+`bmon -p {{interface_1,interface_2,interface_3}}`
+
+- 设置计算每个计数器速率的间隔(以秒为单位):
+
+`bmon -R {{2.0}}`

+ 28 - 0
pages.zh/linux/bpftrace.md

@@ -0,0 +1,28 @@
+# bpftrace
+
+> Linux eBPF 的高级跟踪语言。
+> 更多信息:<https://github.com/iovisor/bpftrace>.
+
+- 显示 bpftrace 版本:
+
+`bpftrace -V`
+
+- 列出所有可用的探针:
+
+`sudo bpftrace -l`
+
+- 运行单行程序(例如按程序进行系统调用计数):
+
+`sudo bpftrace -e '{{tracepoint:raw_syscalls:sys_enter { @[comm] = count(); }}}'`
+
+- 从文件运行程序:
+
+`sudo bpftrace {{文件}}`
+
+- 通过 PID 跟踪程序:
+
+`sudo bpftrace -e '{{tracepoint:raw_syscalls:sys_enter /pid == 123/ { @[comm] = count(); }}}'`
+
+- 进行试运行并以 eBPF 格式显示输出:
+
+`sudo bpftrace -d -e '{{单行程序}}'`

+ 28 - 0
pages.zh/linux/bpytop.md

@@ -0,0 +1,28 @@
+# bpytop
+
+> 用图形显示有关正在运行的进程的动态实时信息。类似于 `gtop` 和 `htop`.
+> 更多信息:<https://github.com/aristocratos/bpytop>.
+
+- 运行 bpytop:
+
+`bpytop`
+
+- 以最小模式启动,无需内存和网络盒:
+
+`bpytop -m`
+
+- 显示版本:
+
+`bpytop -v`
+
+- 切换最小模式:
+
+`m`
+
+- 搜索正在运行的程序或进程:
+
+`f`
+
+- 改变设置:
+
+`M`

+ 24 - 0
pages.zh/linux/brctl.md

@@ -0,0 +1,24 @@
+# brctl
+
+> 以太网桥管理。
+> 更多信息:<https://manned.org/brctl>.
+
+- 显示有关当前现有以太网网桥信息的列表:
+
+`sudo brctl show`
+
+- 创建新的以太网桥接接口:
+
+`sudo brctl add {{网桥名}}`
+
+- 删除一个已存在的以太网桥接接口:
+
+`sudo brctl del {{网桥名}}`
+
+- 向现有网桥添加接口:
+
+`sudo brctl addif {{网桥名}} {{接口名}}`
+
+- 从现有网桥中删除接口:
+
+`sudo brctl delif {{网桥名}} {{接口名}}`

+ 36 - 0
pages.zh/linux/brew.md

@@ -0,0 +1,36 @@
+# brew
+
+> Linux 的 Homebrew 包管理器。
+> 更多信息:<https://docs.brew.sh/Homebrew-on-Linux>.
+
+- 搜索可用的软件包:
+
+`brew search {{包名}}`
+
+- 安装最新版的包(使用 --devel 获取开发版):
+
+`brew install {{包名}}`
+
+- 列出所有已安装的包:
+
+`brew list`
+
+- 更新已安装的包(如果未指定,则更新所有包):
+
+`brew upgrade {{包名}}`
+
+- 从 GitHub 更新到最新版本的 Linuxbrew 和所有包:
+
+`brew update`
+
+- 显示有更新版本可用的包:
+
+`brew outdated`
+
+- 显示一个包的信息(版本、安装路径、依赖等):
+
+`brew info {{包名}}`
+
+- 检查本地 Linuxbrew 安装是否存在潜在问题:
+
+`brew doctor`