pages.zh: update outdated pages (#11939)

This commit is contained in:
Sebastiaan Speck
2024-01-01 10:38:53 +01:00
committed by GitHub
parent ef0f5499ad
commit 81ddb70476
59 changed files with 125 additions and 205 deletions

View File

@@ -6,23 +6,3 @@
- 显示当前目录下所有文件的属性:
`attrib`
- 显示当前目录和其子目录下所有文件的属性:
`attrib /S`
- 显示当前目录和其子目录下所有文件和目录的属性:
`attrib /S /D`
- 为一个文件增加只读属性:
`attrib +R {{document.txt}}`
- 删除一个文件的系统和隐藏属性:
`attrib -S -H {{document.txt}}`
- 为一个目录增加隐藏属性:
`attrib +H {{目录的路径}}`

View File

@@ -9,28 +9,24 @@
- 运行指定的命令然后退出:
`cmd /c "{{命令}}"`
`cmd /c {{echo 命令}}`
- 执行一个指定的命令,之后进入一个交互式 shell
`cmd /k "{{命令}}"`
`cmd /k {{echo 命令}}`
- 不显示命令的输出结果:
`cmd /q`
- 启用或禁用命令扩展:
`cmd /e:{{on|off}}`
- 启用或禁用文件和目录名的自动补全:
`cmd /f:{{on|off}}`
- 启用或禁用环境变量扩展:
`cmd /v:{{on|off}}`
- 启用或禁用命令扩展:
`cmd /e:{{on|off}}`
- 强制输出内容使用 Unicode 编码:
`cmd /u`

View File

@@ -14,7 +14,7 @@
- 比较两个文件集:
`comp {{目录 1/*}} {{目录 2/*}}`
`comp {{路径\到\目录1}}\* {{路径\到\目录2}}\*`
- 以十进制格式显示差异:

View File

@@ -5,16 +5,16 @@
- 查找包含指定字符串的行:
`find {{字符串}} {{文件或目录的路径}}`
`find "{{字符串}}" {{文件或目录的路径}}`
- 查找不包含指定字符串的行:
`find {{字符串}} {{文件或目录的路径}} /v`
`find "{{字符串}}" {{文件或目录的路径}} /v`
- 显示包含指定字符串的行的总数:
`find {{字符串}} {{文件或目录的路径}} /c`
`find "{{字符串}}" {{文件或目录的路径}} /c`
- 显示匹配的行的行数:
`find {{字符串}} {{文件或目录的路径}} /n`
`find "{{字符串}}" {{文件或目录的路径}} /n`

View File

@@ -23,10 +23,6 @@
`findstr /c:"{{查询语句}}" *.txt`
- 只查找完全匹配的行:
`findstr /x "{{查询语句}}" *`
- 显示匹配的行的行数:
`findstr /n "{{查询语句}}" *`

View File

@@ -25,4 +25,4 @@
- 搜索超过 5 天的文件:
`forfiles /d {{+5}}`
`forfiles /d +{{5}}`

View File

@@ -13,7 +13,7 @@
- 更新所有已安装的包:
`scoop update *`
`scoop update --all`
- 列出所有已安装的包:
@@ -29,4 +29,4 @@
- 移除所有包的旧版本并清理下载缓存:
`scoop cleanup -k *`
`scoop cleanup --cache --all`

View File

@@ -7,10 +7,6 @@
`shutdown /s`
- 重启当前的计算机:
`shutdown /r`
- 休眠当前的计算机:
`shutdown /h`
@@ -23,10 +19,6 @@
`shutdown /s /t {{秒}}`
- 指定一个关机的理由:
`shutdown /s /c "{{理由}}"`
- 在超时之前取消关机指令:
`shutdown /a`