pages*: update outdated pages (#11821)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: Juri Dispan <juri.dispan@posteo.net> Co-authored-by: Isaac Vicente <isaacvicentsocial@gmail.com>
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
- 打印时,显示行号:
|
||||
|
||||
`bat -n {{文件}}`
|
||||
`bat --number {{文件}}`
|
||||
|
||||
- 高亮一个 `json` 文件:
|
||||
|
||||
|
@@ -5,20 +5,12 @@
|
||||
|
||||
- 以标准输出,打印文件内容:
|
||||
|
||||
`cat {{file}}`
|
||||
`cat {{path/to/file}}`
|
||||
|
||||
- 多文件合并到目标文件:
|
||||
|
||||
`cat {{file1}} {{file2}} > {{target_file}}`
|
||||
`cat {{path/to/file1 path/to/file2 ...}} > {{target_file}}`
|
||||
|
||||
- 多文件合并,并追加到目标文件:
|
||||
|
||||
`cat {{file1}} {{file2}} >> {{target_file}}`
|
||||
|
||||
- 显示行号:
|
||||
|
||||
`cat -n {{file}}`
|
||||
|
||||
- 显示不可打印和空白的字符(使用 `M-` 前缀标记非 ASCII 字符):
|
||||
|
||||
`cat -v -t -e {{file}}`
|
||||
`cat {{path/to/file1 path/to/file2 ...}} >> {{target_file}}`
|
||||
|
@@ -14,7 +14,7 @@
|
||||
|
||||
- 下载文件,跟随 重定向,并且自动 续传(恢复)前序文件传输:
|
||||
|
||||
`curl --remote-name --location --continue-at - {{http://example.com/filename}}`
|
||||
`curl --fail --remote-name --location --continue-at - {{http://example.com/filename}}`
|
||||
|
||||
- 发送表单编码数据(`application/x-www-form-urlencoded` 的 POST 请求):
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
- 使用用户名和密码,授权访问服务器:
|
||||
|
||||
`curl --user myusername:mypassword {{http://example.com}}`
|
||||
`curl --user {{用户名}} {{http://example.com}}`
|
||||
|
||||
- 为指定资源使用客户端证书和密钥,并且跳过证书验证:
|
||||
|
||||
|
@@ -5,15 +5,7 @@
|
||||
|
||||
- 从任意位置删除文件:
|
||||
|
||||
`rm {{路径/到/文件}} {{路径/到/另一个/文件}}`
|
||||
|
||||
- 递归删除一个目录及其所有子目录:
|
||||
|
||||
`rm -r {{路径/到/目录}}`
|
||||
|
||||
- 强行删除一个目录,不提示确认或显示错误信息:
|
||||
|
||||
`rm -rf {{路径/到/目录}}`
|
||||
`rm {{路径/到/文件 路径/到/另一个/文件 ...}}`
|
||||
|
||||
- 交互式地删除多个文件,每次删除前都会有提示:
|
||||
|
||||
@@ -22,3 +14,7 @@
|
||||
- 以粗略模式删除文件,为每个被删除的文件打印一条信息:
|
||||
|
||||
`rm -v {{路径/到/目录/*}}`
|
||||
|
||||
- 递归删除一个目录及其所有子目录:
|
||||
|
||||
`rm -r {{路径/到/目录}}`
|
||||
|
Reference in New Issue
Block a user