恢复控制台:修订间差异

删除158字节 、​ 2024 年 9 月 15 日 (星期日)
第 16 行: 第 16 行:
== 命令 ==
== 命令 ==
恢复控制台支持许多命令提示符命令,并包含一些自定义命令,这些命令可以分为几个类别。
恢复控制台支持许多命令提示符命令,并包含一些自定义命令,这些命令可以分为几个类别。
=== Command Prompt counterparts ===
=== 命令提示符对应项 ===
The following commands share largely the same behavior with Command Prompt built-in commands, mostly dealing with file management:
以下命令的行为与命令提示符内置命令大致相同,主要处理文件管理:
* <code>ATTRIB</code> – manipulates file attributes
* <code>ATTRIB</code> – 操作文件属性
* <code>CD</code>/<code>CHDIR</code> – changes or prints the current working directory
* <code>CD</code>/<code>CHDIR</code> – 更改或打印当前工作目录
* <code>CLS</code> – clears the screen
* <code>CLS</code> – 清除屏幕
* <code>COPY</code> – copies files
* <code>COPY</code> – 复制文件
* <code>DEL</code>/<code>DELETE</code> – deletes files
* <code>DEL</code>/<code>DELETE</code> – 删除文件
* <code>DIR</code> – prints the contents of a directory
* <code>DIR</code> – 打印目录的内容
* <code>EXIT</code> – exits the Recovery Console and reboots the computer
* <code>EXIT</code> – 退出故障恢复控制台并重新启动计算机
* <code>HELP</code> – prints a list of supported commands or details about their usage
* <code>HELP</code> – 打印支持的命令列表或有关其用法的详细信息
* <code>MD</code>/<code>MKDIR</code> – creates a directory
* <code>MD</code>/<code>MKDIR</code> – 创建目录
* <code>RD</code>/<code>RMDIR</code> – removes a directory
* <code>RD</code>/<code>RMDIR</code> – 删除目录
* <code>REN</code>/<code>RENAME</code> – renames a file or directory
* <code>REN</code>/<code>RENAME</code> – 重命名文件或目录
* <code>SET</code> – sets or prints environment variables
* <code>SET</code> – 设置或输出环境变量
* <code>TYPE</code>/<code>MORE</code>{{efn|The <code>MORE</code> command is recognized only as an alias for the <code>TYPE</code> command, which does not entirely match its usual syntax. Notably, it cannot be used to optionally paginate the output of a command; however, the output of all commands is already paginated automatically, removing the need for the command.}} – prints the contents of a file
* <code>TYPE</code>/<code>MORE</code>{{efn|<code>MORE</code> 命令仅被识别为 <code>TYPE</code> 命令的别名,此命令不完全匹配其通常的语法。值得注意的是,它不能用于选择性地对命令的输出进行分页;但是,由于所有命令的输出都已自动分页,因此不需要此命令。}} – 输出文件的内容
 
=== External command counterparts ===
=== External command counterparts ===
The following commands are similar to certain external commands included with Windows; however, they are not completely compatible with their regular counterparts' behavior (if at all):
The following commands are similar to certain external commands included with Windows; however, they are not completely compatible with their regular counterparts' behavior (if at all):