mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
aapt to buku: add Chinese translation (#4846)
This commit is contained in:
parent
7820f75085
commit
8f73cca2e7
28 changed files with 597 additions and 3 deletions
16
pages.zh/common/aapt.md
Normal file
16
pages.zh/common/aapt.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# aapt
|
||||
|
||||
> 安卓资源包工具(Android Asset Packaging Tools).
|
||||
> 该工具可以查看,创建, 更新资源压缩包(zip, jar, apk)。
|
||||
|
||||
- 列出资源压缩包里的内容:
|
||||
|
||||
`aapt list {{路径/到/应用.apk}}`
|
||||
|
||||
- 查看APK包内指定的内容 (版本, 权限许可等):
|
||||
|
||||
`aapt dump badging {{路径/到/应用.apk}}`
|
||||
|
||||
- 打包生成资源压缩包:
|
||||
|
||||
`aapt package -F {{路径/到/应用.apk}} {{路径/到/目录}}`
|
28
pages.zh/common/act.md
Normal file
28
pages.zh/common/act.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# act
|
||||
|
||||
> 使用Docker本地运行GitHub Actions
|
||||
> 更多信息: <https://github.com/nektos/act>.
|
||||
|
||||
- 列出可用的actions清单:
|
||||
|
||||
`act -l`
|
||||
|
||||
- 运行默认event:
|
||||
|
||||
`act`
|
||||
|
||||
- 运行指定event:
|
||||
|
||||
`act {{事件类型}}`
|
||||
|
||||
- 运行指定action:
|
||||
|
||||
`act -a {{action_id}}`
|
||||
|
||||
- 非实际运行actions (也就是dry-run模式):
|
||||
|
||||
`act -n`
|
||||
|
||||
- 展示详细记录:
|
||||
|
||||
`act -v`
|
20
pages.zh/common/adb-install.md
Normal file
20
pages.zh/common/adb-install.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# adb install
|
||||
|
||||
> 安卓调试桥-Install: 将应用安装包推送到Android模拟器或已连接的安卓设备.
|
||||
> 更多信息: <https://developer.android.com/studio/command-line/adb>.
|
||||
|
||||
- 向模拟器/设备推送安卓app:
|
||||
|
||||
`adb install {{路径/到/应用.apk}}`
|
||||
|
||||
- 重装app, 保持原有数据:
|
||||
|
||||
`adb install -r {{路径/到/应用.apk}}`
|
||||
|
||||
- 授予app manifest中列举的所有权限许可:
|
||||
|
||||
`adb install -g {{路径/到/应用.apk}}`
|
||||
|
||||
- 快速部署模式,仅更新APK更改过的部分:
|
||||
|
||||
`adb install --fastdeploy {{路径/到/应用.apk}}`
|
20
pages.zh/common/adb-reverse.md
Normal file
20
pages.zh/common/adb-reverse.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# adb reverse
|
||||
|
||||
> 安卓调试桥-反射: 反向映射安卓模拟器实例或者已连接的实体设备的套接字连接.
|
||||
> 更多信息: <https://developer.android.com/studio/command-line/adb>.
|
||||
|
||||
- 列出所有来自模拟器和设备的映射连接
|
||||
|
||||
`adb reverse —list`
|
||||
|
||||
- 将TCP端口从安卓模拟器或设备中映射到localhost:
|
||||
|
||||
`adb reverse tcp:{{远程端口}} tcp:{{本地端口}}`
|
||||
|
||||
- 从安卓模拟器或设备移除一个反向socket连接:
|
||||
|
||||
`adb reverse --remove tcp:{{远程端口}}`
|
||||
|
||||
- 从安卓模拟器或设备移除所有反向socket连接:
|
||||
|
||||
`adb reverse --remove-all`
|
38
pages.zh/common/adb-shell.md
Normal file
38
pages.zh/common/adb-shell.md
Normal file
|
@ -0,0 +1,38 @@
|
|||
# adb shell
|
||||
|
||||
> 安卓调试桥-Shell: 运行安卓模拟器或者连接设备上的远程终端命令。
|
||||
> 更多信息: <https://developer.android.com/studio/command-line/adb>.
|
||||
|
||||
- 启动模拟器/设备上的远程终端:
|
||||
|
||||
`adb shell`
|
||||
|
||||
- 获取模拟器/设备全部属性:
|
||||
|
||||
`adb shell getprop`
|
||||
|
||||
- 查看进程列表
|
||||
|
||||
- 重置所有运行时权限为它们的默认值:
|
||||
|
||||
`adb shell pm reset-permissions`
|
||||
|
||||
- 撤销一个应用的危险权限:
|
||||
|
||||
`adb shell pm revoke {{包名}} {{权限}}`
|
||||
|
||||
- 触发一个键盘敲击事件:
|
||||
|
||||
`adb shell input keyevent {{键位码}}}`
|
||||
|
||||
- 清除模拟器/设备上的数据:
|
||||
|
||||
`adb shell pm clear {{包名}}`
|
||||
|
||||
- 启动模拟器/设备上的一个行为:
|
||||
|
||||
`adb shell am start -n {{包名}}/{{活动名}}`
|
||||
|
||||
- 启动模拟器/设备上的首页活动:
|
||||
|
||||
`adb shell am start -W -c android.intent.category.HOME -a android.intent.action.MAIN`
|
|
@ -1,6 +1,7 @@
|
|||
# adb
|
||||
|
||||
> 安卓调试桥:与 Android 模拟器或已连接的 Android 设备通信.
|
||||
> 详见: <https://developer.android.com/studio/command-line/adb>.
|
||||
|
||||
- 检查 adb server 进程的是否在运行,并开启它:
|
||||
|
||||
|
@ -16,15 +17,15 @@
|
|||
|
||||
- 将 Android 应用程序推送到模拟器 / 设备 :
|
||||
|
||||
`adb install -r {{本地 APK 的路径}}`
|
||||
`adb install -r {{路径/到/应用.apk}}`
|
||||
|
||||
- 从目标设备上拷贝一个文件 / 目录到本地:
|
||||
|
||||
`adb pull {{被拷贝的目标设备上的文件或目录}} {{要保存到本地的文件或目录}}`
|
||||
`adb pull {{路径/到/设备的文件或目录}} {{路径/到/本地上的目录}}`
|
||||
|
||||
- 从本地拷贝一个文件 / 目录到目标设备:
|
||||
|
||||
`adb push {{被拷贝的本地文件或目录}} {{要保存到目标设备的文件或目录}}`
|
||||
`adb push {{路径/到/本地文件或目录}} {{路径/到/设备上的目录}}`
|
||||
|
||||
- 列出已连接的设备:
|
||||
|
||||
|
|
16
pages.zh/common/androguard.md
Normal file
16
pages.zh/common/androguard.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# androguard
|
||||
|
||||
> 使用python编写的一款针对安卓应用的逆向工程工具.
|
||||
> 更多信息: <https://github.com/androguard/androguard>.
|
||||
|
||||
- 展示Android manifest清单文件:
|
||||
|
||||
`androguard axml {{路径/至/应用.apk}}`
|
||||
|
||||
- 展示app元数据 (版本和app ID):
|
||||
|
||||
`androguard apkid {{路径/至/应用.apk}}`
|
||||
|
||||
- 反编译Java代码:
|
||||
|
||||
`androguard decompile {{路径/至/应用.apk}} --output {{路径/至/目录}}`
|
16
pages.zh/common/apktool.md
Normal file
16
pages.zh/common/apktool.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# apktool
|
||||
|
||||
> APK文件反编译工具
|
||||
> 更多信息: <https://ibotpeaches.github.io/Apktool/>.
|
||||
|
||||
- 反编译:
|
||||
|
||||
`apktool d {{应用.apk}}`
|
||||
|
||||
- 将一个文件夹打包为apk文件:
|
||||
|
||||
`apktool b {{路径/到/目录}}`
|
||||
|
||||
- 安装并存储框架:
|
||||
|
||||
`apktool if {{框架.apk}}`
|
8
pages.zh/common/arch.md
Normal file
8
pages.zh/common/arch.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# arch
|
||||
|
||||
> 展示系统架构的名称.
|
||||
> 另见`uname`.
|
||||
|
||||
- 展示系统架构.
|
||||
|
||||
`arch`
|
28
pages.zh/common/asdf.md
Normal file
28
pages.zh/common/asdf.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# asdf
|
||||
|
||||
> 可扩展的包版本管理器,支持Nodejs,Ruby,Elixir,Erlang等.
|
||||
> 更多信息: <https://asdf-vm.com>.
|
||||
|
||||
- 可用插件清单:
|
||||
|
||||
`asdf plugin-list-all`
|
||||
|
||||
- 安装插件:
|
||||
|
||||
`asdf plugin-add {{插件名}}`
|
||||
|
||||
- 软件包的可用版本清单:
|
||||
|
||||
`asdf list-all {{软件包名}}`
|
||||
|
||||
- 安装指定版本的软件包:
|
||||
|
||||
`asdf install {{软件包名}} {{版本}}`
|
||||
|
||||
- 设置软件包的全局安装版本:
|
||||
|
||||
`asdf global {{软件包名}} {{版本}}`
|
||||
|
||||
- 设置软件包的本地版本:
|
||||
|
||||
`asdf local {{软件包名}} {{版本}}`
|
20
pages.zh/common/autoflake.md
Normal file
20
pages.zh/common/autoflake.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# autoflake
|
||||
|
||||
> 一个工具,用于检查python代码中未被使用的引入和变量.
|
||||
> 更多信息: <https://github.com/myint/autoflake>.
|
||||
|
||||
- 移除指定文件中未使用的变量,并展示diff:
|
||||
|
||||
`autoflake --remove-unused-variables {{文件.py}}`
|
||||
|
||||
- 移除多个文件中未使用的引入,并展示diffs:
|
||||
|
||||
`autoflake --remove-all-unused-imports {{文件1.py}} {{文件2.py}} {{文件3.py}}`
|
||||
|
||||
- 移除未被使用的变量,并覆盖更新:
|
||||
|
||||
`autoflake --remove-unused-variables --in-place {{文件.py}}`
|
||||
|
||||
- 递归地移除指定文件夹下层所有文件中未使用的变量,并覆盖更新:
|
||||
|
||||
`autoflake --remove-unused-variables --in-place --recursive {{路径/到/目录}}`
|
25
pages.zh/common/autojump.md
Normal file
25
pages.zh/common/autojump.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# autojump
|
||||
|
||||
> 快速跳转,访问次数最多的文件夹优先.
|
||||
> 使用j、jc、jo作为别名.
|
||||
> 更多信息: <https://github.com/wting/autojump>.
|
||||
|
||||
- 跳转到包含指定通配符的目录:
|
||||
|
||||
`j {{通配符表达式}}`
|
||||
|
||||
- 跳转到包含指定通配符的目录的下一级:
|
||||
|
||||
`jc {{通配符表达式}}`
|
||||
|
||||
- 使用系统文件管理器,打开指定的目录:
|
||||
|
||||
`jo {{通配符表达式}}`
|
||||
|
||||
- 从autojump数据库中删除不存在的目录:
|
||||
|
||||
`j --purge`
|
||||
|
||||
- 展示autojump数据库数据:
|
||||
|
||||
`j -s`
|
25
pages.zh/common/axel.md
Normal file
25
pages.zh/common/axel.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# axel
|
||||
|
||||
> 一款下载加速器.
|
||||
> 支持HTTP, HTTPS, 和 FTP.
|
||||
> 更多信息: <https://github.com/axel-download-accelerator/axel>.
|
||||
|
||||
- 链接下载:
|
||||
|
||||
`axel {{超链接}}`
|
||||
|
||||
- 链接下载,指定文件名:
|
||||
|
||||
`axel {{超链接}} -o {{文件名称}}`
|
||||
|
||||
- 多连接数下载:
|
||||
|
||||
`axel -n {{连接数量}} {{超链接}}`
|
||||
|
||||
- 查询镜像:
|
||||
|
||||
`axel -S {{镜像数量}}} {{超链接}}`
|
||||
|
||||
- 限制下载速度 (字节bite每秒):
|
||||
|
||||
`axel -s {{字节数}} {{超链接}}`
|
32
pages.zh/common/babel.md
Normal file
32
pages.zh/common/babel.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# babel
|
||||
|
||||
> 一款JavaScript的编译器,将下一代ES语法转换为兼容语法。
|
||||
> 更多信息: <https://babeljs.io/>.
|
||||
|
||||
- 转编译指定文件到标准输出:
|
||||
|
||||
`babel {{路径/到/文件}}`
|
||||
|
||||
- 转编译指定文件,输入为特定文件:
|
||||
|
||||
`babel {{路径/到/输入文件}} --out-file {{路径/到/输出文件}}`
|
||||
|
||||
- 监听文件变动触发转编译:
|
||||
|
||||
`babel {{路径/到/输入文件}} --watch`
|
||||
|
||||
- 转编译整个目录下的js文件:
|
||||
|
||||
`babel {{路径/到/输入文件目录}}`
|
||||
|
||||
- 跳过指定目录下指定文件的编译(多文件使用英文逗号“,”分隔):
|
||||
|
||||
`babel {{路径/到/输入文件目录}} --ignore {{被忽略文件}}`
|
||||
|
||||
- 转编译后,执行压缩:
|
||||
|
||||
`babel {{路径/到/输入文件}} --minified`
|
||||
|
||||
- 使用预设值:
|
||||
|
||||
`babel {{路径/到/输入文件}} --presets {{预设项}}`
|
19
pages.zh/common/base32.md
Normal file
19
pages.zh/common/base32.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# base32
|
||||
|
||||
> 将文件或标准输入编码到Base32或从Base32解码为标准输出。
|
||||
|
||||
- 编码一个文件:
|
||||
|
||||
`base32 {{文件名}}`
|
||||
|
||||
- 解码一个文件:
|
||||
|
||||
`base32 -d {{文件名}}`
|
||||
|
||||
- 从标准输入编码:
|
||||
|
||||
`{{某指令}} | base32`
|
||||
|
||||
- 将标准输入解码:
|
||||
|
||||
`{{某指令}} | base32 -d`
|
19
pages.zh/common/base64.md
Normal file
19
pages.zh/common/base64.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# base64
|
||||
|
||||
> 将文件或标准输入编码到Base64或从Base64解码为标准输出。
|
||||
|
||||
- 编码一个文件:
|
||||
|
||||
`base64 {{文件名}}`
|
||||
|
||||
- 解码一个文件:
|
||||
|
||||
`base64 -d {{文件名}}`
|
||||
|
||||
- 从标准输入编码:
|
||||
|
||||
`{{某指令}} | base64`
|
||||
|
||||
- 将标准输入解码:
|
||||
|
||||
`{{某指令}} | base64 -d`
|
15
pages.zh/common/basename.md
Normal file
15
pages.zh/common/basename.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# basename
|
||||
|
||||
> 移除一个路径的目录部分字符.
|
||||
|
||||
- 仅显示文件名:
|
||||
|
||||
`basename {{路径/到/文件}}`
|
||||
|
||||
- 显示路径字符最右边表示目录的字符:
|
||||
|
||||
`basename {{路径/到/目录/}}`
|
||||
|
||||
- 展示无后缀的文件名称:
|
||||
|
||||
`basename {{路径/到/文件}} {{后缀}}`
|
24
pages.zh/common/bashmarks.md
Normal file
24
pages.zh/common/bashmarks.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# bashmarks
|
||||
|
||||
> 使用一个字母的命令,保存或者跳转到常用的目录
|
||||
> 更多信息: <https://github.com/huyng/bashmarks>.
|
||||
|
||||
- 可访问书签清单:
|
||||
|
||||
`l`
|
||||
|
||||
- 保存当前目录到某书签里:
|
||||
|
||||
`s {{书签名}}`
|
||||
|
||||
- 跳转到指定书签
|
||||
|
||||
`g {{书签名}}`
|
||||
|
||||
- 打印书签目录内容
|
||||
|
||||
`p {{书签名}}`
|
||||
|
||||
- 删除书签:
|
||||
|
||||
`d {{书签名}}`
|
29
pages.zh/common/bat.md
Normal file
29
pages.zh/common/bat.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
# bat
|
||||
|
||||
> 可以打印并且合并文件的命令.
|
||||
> `cat`的复制品,外加无法高亮和git集成.
|
||||
> 更多信息: <https://github.com/sharkdp/bat>.
|
||||
|
||||
- 文件内容打印:
|
||||
|
||||
`bat {{文件}}`
|
||||
|
||||
- 多文件合并到目标文件:
|
||||
|
||||
`bat {{文件1}} {{文件2}} > {{目标文件}}`
|
||||
|
||||
- 在指定文件后追加多个文件合并的内容:
|
||||
|
||||
`bat {{文件1}} {{文件2}} >> {{目标文件}}`
|
||||
|
||||
- 打印时,显示行号:
|
||||
|
||||
`bat -n {{文件}}`
|
||||
|
||||
- 高亮一个json文件:
|
||||
|
||||
`bat --language json {{文件.json}}`
|
||||
|
||||
- 受支持的语言清单:
|
||||
|
||||
`bat --list-languages`
|
28
pages.zh/common/behat.md
Normal file
28
pages.zh/common/behat.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# behat
|
||||
|
||||
> 基于Behaviour-Driven Development的自动化测试PHP框架
|
||||
> 更多信息: <https://behat.org>.
|
||||
|
||||
- 初始化一个PHP behat项目:
|
||||
|
||||
`behat --init`
|
||||
|
||||
- 运行所有测试:
|
||||
|
||||
`behat`
|
||||
|
||||
- 运行指定组所有的测试用例:
|
||||
|
||||
`behat --suite={{组名}}`
|
||||
|
||||
- 运行所有测试,指定输入格式:
|
||||
|
||||
`behat --format {{pretty|progress}}`
|
||||
|
||||
- 将测试结果输出到指定文件:
|
||||
|
||||
`behat --out {{路径/到/文件}}`
|
||||
|
||||
- 展示测试组所在的目录清单:
|
||||
|
||||
`behat --definitions`
|
11
pages.zh/common/bg.md
Normal file
11
pages.zh/common/bg.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# bg
|
||||
|
||||
> 恢复被挂起的任务 (如. 使用 `Ctrl + Z`), 使它们在后台运行.
|
||||
|
||||
- 恢复最近被挂起的任务,在后台运行:
|
||||
|
||||
`bg`
|
||||
|
||||
- 恢复特定的任务 (使用 `jobs -l` 可以获取任务ID) 并在后台运行:
|
||||
|
||||
`bg {{job_id}}`
|
20
pages.zh/common/bmaptool.md
Normal file
20
pages.zh/common/bmaptool.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# bmaptool
|
||||
|
||||
> 便捷地创建或复制块文件映射(被设计的比`cp`或`dd`更快).
|
||||
> 更多信息: <https://source.tizen.org/documentation/reference/bmaptool>.
|
||||
|
||||
- 使用图片生成块图文件:
|
||||
|
||||
`bmaptool create -o {{blockmap格式文件.bmap}} {{图片文件}}`
|
||||
|
||||
- 复制图片到指定目录:
|
||||
|
||||
`bmaptool copy --bmap {{blockmap格式文件}} {{图片文件}} {{/开发路径/sdb}}`
|
||||
|
||||
- 复制压缩后的图片到指定目录:
|
||||
|
||||
`bmaptool copy --bmap {{blockmap格式文件}} {{图片文件.gz}} {{/开发路径/sdb}}`
|
||||
|
||||
- 复制图片的时候,不将图片转成块图:
|
||||
|
||||
`bmaptool copy --nobmap {{图片文件}} {{/开发路径/sdb}}`
|
33
pages.zh/common/bower.md
Normal file
33
pages.zh/common/bower.md
Normal file
|
@ -0,0 +1,33 @@
|
|||
# bower
|
||||
|
||||
> 前端web开发的包管理优化工具。
|
||||
> 一个包可以是GitHub中user/repo的缩写,一个Git端口,一个URL链接或者一个已注册的包。
|
||||
> 更多信息: <https://bower.io/>.
|
||||
|
||||
- 安装列在项目下 的bower.json文件中的依赖:
|
||||
|
||||
`bower install`
|
||||
|
||||
- 安装一个或者多个依赖到bower_components目录:
|
||||
|
||||
`bower install {{包名1}} {{包名2}}`
|
||||
|
||||
- 从本地的bower_components目录卸载依赖
|
||||
|
||||
`bower uninstall {{包名1}} {{包名2}}`
|
||||
|
||||
- 列出本地包和可能的更新项:
|
||||
|
||||
`bower list`
|
||||
|
||||
- 显示bower指令的帮助信息:
|
||||
|
||||
`bower help {{指令}}`
|
||||
|
||||
- 创建你的项目的bower.json:
|
||||
|
||||
`bower init`
|
||||
|
||||
- 安装时候指定依赖的版本号,并添加到bower.json:
|
||||
|
||||
`bower install {{local_name}}={{package}}#{{version}} --save`
|
20
pages.zh/common/browser-sync.md
Normal file
20
pages.zh/common/browser-sync.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# browser-sync
|
||||
|
||||
> 启动一个本地的服务,可以监听文件改动,刷新浏览器.
|
||||
> 更多信息: <https://browsersync.io/docs/command-line>.
|
||||
|
||||
- 将指定目录发成服务:
|
||||
|
||||
`browser-sync start --server {{路径/到/目录}} --files {{路径/到/目录}}`
|
||||
|
||||
- 启动当前目录服务,同时监听指定目录下css文件的变动
|
||||
|
||||
`browser-sync start --server --files '{{路径/到/目录/*.css}}'`
|
||||
|
||||
- 创建配置文件:
|
||||
|
||||
`browser-sync init`
|
||||
|
||||
- 按指定配置文件中的配置启动服务:
|
||||
|
||||
`browser-sync start --config {{配置文件}}`
|
25
pages.zh/common/btm.md
Normal file
25
pages.zh/common/btm.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# btm
|
||||
|
||||
> 命令行`top`的替代品.
|
||||
> 比`top更轻便,支持跨平台、图表更丰富`.
|
||||
> 更多信息: <https://github.com/ClementTsang/bottom>.
|
||||
|
||||
- 展示默认布局 (cpu, 内存, 温度, 磁盘, 网络和 进程):
|
||||
|
||||
`btm`
|
||||
|
||||
- 开启基础模式,关闭图表和高亮(接近于 `top`):
|
||||
|
||||
`btm --basic`
|
||||
|
||||
- 将图表中的小点换成大点:
|
||||
|
||||
`btm --dot_marker`
|
||||
|
||||
- 展示电池充电和健康状态:
|
||||
|
||||
`btm --battery`
|
||||
|
||||
- 设置图表刷新间隔和留存数据的时长:
|
||||
|
||||
`btm --rate 250 --default_time_value 30000`
|
24
pages.zh/common/buku.md
Normal file
24
pages.zh/common/buku.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# buku
|
||||
|
||||
> 命令行版本的书签管理器.
|
||||
> 更多信息: <https://github.com/jarun/Buku>.
|
||||
|
||||
- 根据关键词和标签查找书签:
|
||||
|
||||
`buku {{关键字}} --stag {{标签}}`
|
||||
|
||||
- 添加书签,并且打上标签:
|
||||
|
||||
`buku --add {{https://example.com}} {{搜索引擎}}, {{标签}}`
|
||||
|
||||
- 删除一个书签:
|
||||
|
||||
`buku --delete {{书签id}}`
|
||||
|
||||
- 打开编辑器,修改书签:
|
||||
|
||||
`buku --write {{书签id}}`
|
||||
|
||||
- 将指定标签移除:
|
||||
|
||||
`buku --update {{书签id}} --tag {{-}} {{搜索引擎}}`
|
11
pages.zh/common/case.md
Normal file
11
pages.zh/common/case.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# case
|
||||
|
||||
> case ... esac 与其他语言中的 switch ... case 语句类似,是一种多分枝选择结构.
|
||||
|
||||
- 通过字符串字面量判断执行分支:
|
||||
|
||||
`case {{入参变量}} in {{字符字面量1}} {{执行语句块1}} ;; {{字符字面量2}}) {{执行语句块2}} ;; *) {{默认执行语句块}} ;; esac`
|
||||
|
||||
- 搭配通配符进行匹配,判断执行分支:
|
||||
|
||||
`case {{入参变量}} in {{通配符或者字符字面量}}) {{执行语句块1}} ; ;; {{通配符或者字符字面量}}) {{执行语句块1}}; ;; *) {{echo "what?"}}; ;; esac`
|
23
pages.zh/common/cat.md
Normal file
23
pages.zh/common/cat.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# cat
|
||||
|
||||
> 打印和拼接文件的工具.
|
||||
|
||||
- 以标准输出,打印文件内容:
|
||||
|
||||
`cat {{file}}`
|
||||
|
||||
- 多文件合并到目标文件:
|
||||
|
||||
`cat {{file1}} {{file2}} > {{target_file}}`
|
||||
|
||||
- 多文件合并,并追加到目标文件:
|
||||
|
||||
`cat {{file1}} {{file2}} >> {{target_file}}`
|
||||
|
||||
- 显示行号:
|
||||
|
||||
`cat -n {{file}}`
|
||||
|
||||
- 显示不可打印和空白的字符 (使用`M-` 前缀标记非ASCII字符):
|
||||
|
||||
`cat -v -t -e {{file}}`
|
Loading…
Add table
Reference in a new issue