import{_ as e,c as n,a,o as l}from"./app-C1vKFkGc.js";const i={};function r(t,s){return l(),n("div",null,[...s[0]||(s[0]=[a(`<h1 id="命令列表" tabindex="-1"><a class="header-anchor" href="#命令列表"><span>命令列表</span></a></h1><p>CMLeonOS 提供了丰富的命令行工具，以下是所有可用命令的详细说明。</p><h2 id="系统命令" tabindex="-1"><a class="header-anchor" href="#系统命令"><span>系统命令</span></a></h2><h3 id="echo" tabindex="-1"><a class="header-anchor" href="#echo"><span>echo</span></a></h3><p>输出文本到控制台。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token builtin class-name">echo</span> <span class="token operator">&lt;</span>text<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token builtin class-name">echo</span> Hello World</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="clear-cls" tabindex="-1"><a class="header-anchor" href="#clear-cls"><span>clear / cls</span></a></h3><p>清空控制台屏幕。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">clear</span></span>
<span class="line"><span class="token comment"># 或</span></span>
<span class="line">cls</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="time" tabindex="-1"><a class="header-anchor" href="#time"><span>time</span></a></h3><p>显示当前时间。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">time</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="date" tabindex="-1"><a class="header-anchor" href="#date"><span>date</span></a></h3><p>显示当前日期。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">date</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="uptime" tabindex="-1"><a class="header-anchor" href="#uptime"><span>uptime</span></a></h3><p>显示系统运行时间。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">uptime</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="whoami" tabindex="-1"><a class="header-anchor" href="#whoami"><span>whoami</span></a></h3><p>显示当前登录的用户名。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">whoami</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="sleep" tabindex="-1"><a class="header-anchor" href="#sleep"><span>sleep</span></a></h3><p>暂停执行指定秒数。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">sleep</span> <span class="token operator">&lt;</span>seconds<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">sleep</span> <span class="token number">5</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h2 id="文件系统命令" tabindex="-1"><a class="header-anchor" href="#文件系统命令"><span>文件系统命令</span></a></h2><h3 id="ls" tabindex="-1"><a class="header-anchor" href="#ls"><span>ls</span></a></h3><p>列出当前目录下的文件和文件夹。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">ls</span> <span class="token punctuation">[</span>path<span class="token punctuation">]</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">ls</span></span>
<span class="line"><span class="token function">ls</span> /system</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="cd" tabindex="-1"><a class="header-anchor" href="#cd"><span>cd</span></a></h3><p>切换当前工作目录。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token builtin class-name">cd</span> <span class="token operator">&lt;</span>path<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token builtin class-name">cd</span> /system</span>
<span class="line"><span class="token builtin class-name">cd</span> <span class="token punctuation">..</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="pwd" tabindex="-1"><a class="header-anchor" href="#pwd"><span>pwd</span></a></h3><p>显示当前工作目录的完整路径。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token builtin class-name">pwd</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="mkdir" tabindex="-1"><a class="header-anchor" href="#mkdir"><span>mkdir</span></a></h3><p>创建新目录。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">mkdir</span> <span class="token operator">&lt;</span>directory<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">mkdir</span> myfolder</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="rm" tabindex="-1"><a class="header-anchor" href="#rm"><span>rm</span></a></h3><p>删除文件。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">rm</span> <span class="token operator">&lt;</span>file<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">rm</span> myfile.txt</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="rmdir" tabindex="-1"><a class="header-anchor" href="#rmdir"><span>rmdir</span></a></h3><p>删除空目录。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">rmdir</span> <span class="token operator">&lt;</span>directory<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">rmdir</span> myfolder</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="cat" tabindex="-1"><a class="header-anchor" href="#cat"><span>cat</span></a></h3><p>显示文件内容。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">cat</span> <span class="token operator">&lt;</span>file<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">cat</span> myfile.txt</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="touch" tabindex="-1"><a class="header-anchor" href="#touch"><span>touch</span></a></h3><p>创建空文件。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">touch</span> <span class="token operator">&lt;</span>file<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">touch</span> newfile.txt</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="cp" tabindex="-1"><a class="header-anchor" href="#cp"><span>cp</span></a></h3><p>复制文件。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">cp</span> <span class="token operator">&lt;</span>source<span class="token operator">&gt;</span> <span class="token operator">&lt;</span>destination<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">cp</span> file1.txt file2.txt</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="mv" tabindex="-1"><a class="header-anchor" href="#mv"><span>mv</span></a></h3><p>移动或重命名文件。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">mv</span> <span class="token operator">&lt;</span>source<span class="token operator">&gt;</span> <span class="token operator">&lt;</span>destination<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">mv</span> oldname.txt newname.txt</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="rename" tabindex="-1"><a class="header-anchor" href="#rename"><span>rename</span></a></h3><p>重命名文件。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">rename</span> <span class="token operator">&lt;</span>oldname<span class="token operator">&gt;</span> <span class="token operator">&lt;</span>newname<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">rename</span> file1.txt file2.txt</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="find" tabindex="-1"><a class="header-anchor" href="#find"><span>find</span></a></h3><p>在当前目录及其子目录中查找文件。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">find</span> <span class="token operator">&lt;</span>filename<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">find</span> config.txt</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="tree" tabindex="-1"><a class="header-anchor" href="#tree"><span>tree</span></a></h3><p>以树形结构显示目录内容。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">tree <span class="token punctuation">[</span>path<span class="token punctuation">]</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">tree</span>
<span class="line">tree /system</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="head" tabindex="-1"><a class="header-anchor" href="#head"><span>head</span></a></h3><p>显示文件的前几行。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">head</span> <span class="token operator">&lt;</span>file<span class="token operator">&gt;</span> <span class="token punctuation">[</span>lines<span class="token punctuation">]</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">head</span> myfile.txt <span class="token number">10</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="tail" tabindex="-1"><a class="header-anchor" href="#tail"><span>tail</span></a></h3><p>显示文件的后几行。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">tail</span> <span class="token operator">&lt;</span>file<span class="token operator">&gt;</span> <span class="token punctuation">[</span>lines<span class="token punctuation">]</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">tail</span> myfile.txt <span class="token number">10</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="wc" tabindex="-1"><a class="header-anchor" href="#wc"><span>wc</span></a></h3><p>统计文件的行数、字数和字节数。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">wc</span> <span class="token operator">&lt;</span>file<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">wc</span> myfile.txt</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="grep" tabindex="-1"><a class="header-anchor" href="#grep"><span>grep</span></a></h3><p>在文件中搜索文本。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">grep</span> <span class="token operator">&lt;</span>pattern<span class="token operator">&gt;</span> <span class="token operator">&lt;</span>file<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">grep</span> <span class="token string">&quot;hello&quot;</span> myfile.txt</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="getdisk" tabindex="-1"><a class="header-anchor" href="#getdisk"><span>getdisk</span></a></h3><p>显示磁盘信息。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">getdisk</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h2 id="编辑器命令" tabindex="-1"><a class="header-anchor" href="#编辑器命令"><span>编辑器命令</span></a></h2><h3 id="edit" tabindex="-1"><a class="header-anchor" href="#edit"><span>edit</span></a></h3><p>使用内置编辑器编辑文件。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">edit <span class="token operator">&lt;</span>file<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">edit myfile.txt</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="nano" tabindex="-1"><a class="header-anchor" href="#nano"><span>nano</span></a></h3><p>使用 Nano 编辑器编辑文件。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">nano</span> <span class="token operator">&lt;</span>file<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">nano</span> myfile.txt</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h2 id="用户管理命令" tabindex="-1"><a class="header-anchor" href="#用户管理命令"><span>用户管理命令</span></a></h2><h3 id="user" tabindex="-1"><a class="header-anchor" href="#user"><span>user</span></a></h3><p>管理用户账户。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">user <span class="token function">add</span> <span class="token operator">&lt;</span>username<span class="token operator">&gt;</span> <span class="token operator">&lt;</span>password<span class="token operator">&gt;</span>    <span class="token comment"># 添加普通用户</span></span>
<span class="line">user <span class="token function">add</span> admin <span class="token operator">&lt;</span>username<span class="token operator">&gt;</span> <span class="token operator">&lt;</span>password<span class="token operator">&gt;</span>  <span class="token comment"># 添加管理员用户</span></span>
<span class="line">user remove <span class="token operator">&lt;</span>username<span class="token operator">&gt;</span>              <span class="token comment"># 删除用户</span></span>
<span class="line">user list                          <span class="token comment"># 列出所有用户</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">user <span class="token function">add</span> john password123</span>
<span class="line">user <span class="token function">add</span> admin admin adminpass</span>
<span class="line">user list</span>
<span class="line">user remove john</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="cpass" tabindex="-1"><a class="header-anchor" href="#cpass"><span>cpass</span></a></h3><p>修改当前用户的密码。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">cpass</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="hostname" tabindex="-1"><a class="header-anchor" href="#hostname"><span>hostname</span></a></h3><p>显示或设置主机名。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">hostname</span>                    <span class="token comment"># 显示主机名</span></span>
<span class="line"><span class="token function">hostname</span> <span class="token operator">&lt;</span>new_hostname<span class="token operator">&gt;</span>    <span class="token comment"># 设置主机名</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">hostname</span></span>
<span class="line"><span class="token function">hostname</span> myserver</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="网络命令" tabindex="-1"><a class="header-anchor" href="#网络命令"><span>网络命令</span></a></h2><h3 id="ipconfig" tabindex="-1"><a class="header-anchor" href="#ipconfig"><span>ipconfig</span></a></h3><p>显示网络配置信息。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">ipconfig</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="setdns" tabindex="-1"><a class="header-anchor" href="#setdns"><span>setdns</span></a></h3><p>设置 DNS 服务器。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">setdns <span class="token operator">&lt;</span>dns_server<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">setdns <span class="token number">8.8</span>.8.8</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="setgateway" tabindex="-1"><a class="header-anchor" href="#setgateway"><span>setgateway</span></a></h3><p>设置网关地址。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">setgateway <span class="token operator">&lt;</span>gateway<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">setgateway <span class="token number">192.168</span>.1.1</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="nslookup" tabindex="-1"><a class="header-anchor" href="#nslookup"><span>nslookup</span></a></h3><p>查询域名解析。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">nslookup</span> <span class="token operator">&lt;</span>domain<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">nslookup</span> google.com</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="ping" tabindex="-1"><a class="header-anchor" href="#ping"><span>ping</span></a></h3><p>测试网络连接。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">ping</span> <span class="token operator">&lt;</span>ip_or_domain<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">ping</span> <span class="token number">8.8</span>.8.8</span>
<span class="line"><span class="token function">ping</span> google.com</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="wget" tabindex="-1"><a class="header-anchor" href="#wget"><span>wget</span></a></h3><p>从网络下载文件。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">wget</span> <span class="token operator">&lt;</span>url<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">wget</span> http://example.com/file.txt</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="ftp" tabindex="-1"><a class="header-anchor" href="#ftp"><span>ftp</span></a></h3><p>启动 FTP 服务器。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">ftp</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="tcpserver" tabindex="-1"><a class="header-anchor" href="#tcpserver"><span>tcpserver</span></a></h3><p>启动 TCP 服务器。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">tcpserver <span class="token operator">&lt;</span>port<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">tcpserver <span class="token number">8080</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="tcpclient" tabindex="-1"><a class="header-anchor" href="#tcpclient"><span>tcpclient</span></a></h3><p>连接到 TCP 服务器。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">tcpclient <span class="token operator">&lt;</span>ip<span class="token operator">&gt;</span> <span class="token operator">&lt;</span>port<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">tcpclient <span class="token number">192.168</span>.1.100 <span class="token number">8080</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h2 id="脚本命令" tabindex="-1"><a class="header-anchor" href="#脚本命令"><span>脚本命令</span></a></h2><h3 id="lua" tabindex="-1"><a class="header-anchor" href="#lua"><span>lua</span></a></h3><p>执行 Lua 脚本。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">lua <span class="token operator">&lt;</span>file<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">lua script.lua</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="com" tabindex="-1"><a class="header-anchor" href="#com"><span>com</span></a></h3><p>执行命令脚本文件。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">com <span class="token operator">&lt;</span>file<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">com script.cm</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="branswe" tabindex="-1"><a class="header-anchor" href="#branswe"><span>branswe</span></a></h3><p>执行 Branswe 脚本。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">branswe <span class="token operator">&lt;</span>file<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">branswe script.brs</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h2 id="实用工具命令" tabindex="-1"><a class="header-anchor" href="#实用工具命令"><span>实用工具命令</span></a></h2><h3 id="calc" tabindex="-1"><a class="header-anchor" href="#calc"><span>calc</span></a></h3><p>执行数学计算。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">calc <span class="token operator">&lt;</span>expression<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">calc <span class="token number">2</span>+2</span>
<span class="line">calc <span class="token number">10</span>*5</span>
<span class="line">calc <span class="token punctuation">(</span><span class="token number">3</span>+5<span class="token punctuation">)</span>*2</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="history" tabindex="-1"><a class="header-anchor" href="#history"><span>history</span></a></h3><p>显示命令历史记录。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">history</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="prompt" tabindex="-1"><a class="header-anchor" href="#prompt"><span>prompt</span></a></h3><p>更改命令提示符。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">prompt <span class="token operator">&lt;</span>new_prompt<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">prompt $</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="background" tabindex="-1"><a class="header-anchor" href="#background"><span>background</span></a></h3><p>更改背景颜色。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">background <span class="token operator">&lt;</span>hex_color<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">background 000000</span>
<span class="line">background FF0000</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="beep" tabindex="-1"><a class="header-anchor" href="#beep"><span>beep</span></a></h3><p>播放系统提示音。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">beep</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="cal" tabindex="-1"><a class="header-anchor" href="#cal"><span>cal</span></a></h3><p>显示日历。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">cal</span> <span class="token punctuation">[</span>month<span class="token punctuation">]</span> <span class="token punctuation">[</span>year<span class="token punctuation">]</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">cal</span></span>
<span class="line"><span class="token function">cal</span> <span class="token number">2</span> <span class="token number">2026</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="base64" tabindex="-1"><a class="header-anchor" href="#base64"><span>base64</span></a></h3><p>Base64 编码和解码。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">base64 encode <span class="token operator">&lt;</span>text<span class="token operator">&gt;</span>    <span class="token comment"># 编码</span></span>
<span class="line">base64 decode <span class="token operator">&lt;</span>text<span class="token operator">&gt;</span>    <span class="token comment"># 解码</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">base64 encode <span class="token string">&quot;Hello World&quot;</span></span>
<span class="line">base64 decode <span class="token string">&quot;SGVsbG8gV29ybGQ=&quot;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="matrix" tabindex="-1"><a class="header-anchor" href="#matrix"><span>matrix</span></a></h3><p>显示黑客帝国矩阵效果。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">matrix</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>说明：</strong></p><ul><li>显示《黑客帝国》风格的矩阵雨效果</li><li>绿色字符在黑色背景上显示</li><li>随机字符和下落速度</li><li>按 ESC 或 Q 键退出</li></ul><h3 id="app" tabindex="-1"><a class="header-anchor" href="#app"><span>app</span></a></h3><p>应用程序管理器。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">app list              <span class="token comment"># 列出所有可用应用</span></span>
<span class="line">app <span class="token function">install</span> <span class="token operator">&lt;</span>name<span class="token operator">&gt;</span>    <span class="token comment"># 安装应用</span></span>
<span class="line">app uninstall <span class="token operator">&lt;</span>name<span class="token operator">&gt;</span>  <span class="token comment"># 卸载应用</span></span>
<span class="line">app installed         <span class="token comment"># 列出已安装应用</span></span>
<span class="line">app <span class="token builtin class-name">help</span>             <span class="token comment"># 显示帮助信息</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">app list</span>
<span class="line">app <span class="token function">install</span> helloworld.lua</span>
<span class="line">app uninstall helloworld.lua</span>
<span class="line">app installed</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p><strong>说明：</strong></p><ul><li>应用存储在嵌入资源中</li><li>安装的应用保存在 <code>0:\\apps</code> 目录</li><li>安装的应用可以使用 <code>lua</code> 命令运行</li></ul><h3 id="alias" tabindex="-1"><a class="header-anchor" href="#alias"><span>alias</span></a></h3><p>创建命令别名。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token builtin class-name">alias</span>                      <span class="token comment"># 列出所有别名</span></span>
<span class="line"><span class="token builtin class-name">alias</span> <span class="token operator">&lt;</span>name<span class="token operator">&gt;</span> <span class="token operator">&lt;</span>command<span class="token operator">&gt;</span>     <span class="token comment"># 创建新别名</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token builtin class-name">alias</span> ll <span class="token string">&#39;ls -l&#39;</span></span>
<span class="line"><span class="token builtin class-name">alias</span> home <span class="token string">&#39;cd /home&#39;</span></span>
<span class="line"><span class="token builtin class-name">alias</span> cls <span class="token function">clear</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="unalias" tabindex="-1"><a class="header-anchor" href="#unalias"><span>unalias</span></a></h3><p>删除命令别名。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token builtin class-name">unalias</span> <span class="token operator">&lt;</span>name<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token builtin class-name">unalias</span> ll</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h2 id="系统信息命令" tabindex="-1"><a class="header-anchor" href="#系统信息命令"><span>系统信息命令</span></a></h2><h3 id="version" tabindex="-1"><a class="header-anchor" href="#version"><span>version</span></a></h3><p>显示系统版本信息。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">version</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="settings" tabindex="-1"><a class="header-anchor" href="#settings"><span>settings</span></a></h3><p>查看或修改系统设置。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">settings                          <span class="token comment"># 列出所有设置</span></span>
<span class="line">settings <span class="token operator">&lt;</span>key<span class="token operator">&gt;</span>                     <span class="token comment"># 显示指定设置的值</span></span>
<span class="line">settings <span class="token operator">&lt;</span>key<span class="token operator">&gt;</span> <span class="token operator">&lt;</span>value<span class="token operator">&gt;</span>           <span class="token comment"># 设置指定设置的值</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">settings</span>
<span class="line">settings LoggerEnabled</span>
<span class="line">settings LoggerEnabled <span class="token boolean">true</span></span>
<span class="line">settings LoggerEnabled <span class="token boolean">false</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p><strong>说明：</strong></p><ul><li>设置存储在 <code>0:\\system\\settings.dat</code> 文件中</li><li>支持的设置项：LoggerEnabled（控制是否输出 Logger 日志）</li><li>首次启动时自动创建配置文件并填入默认值</li><li>如果配置文件存在但缺少某些设置项，系统会自动补充</li></ul><h3 id="about" tabindex="-1"><a class="header-anchor" href="#about"><span>about</span></a></h3><p>显示系统关于信息。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">about</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="help" tabindex="-1"><a class="header-anchor" href="#help"><span>help</span></a></h3><p>显示帮助信息。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token builtin class-name">help</span> <span class="token punctuation">[</span>command<span class="token punctuation">]</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token builtin class-name">help</span></span>
<span class="line"><span class="token builtin class-name">help</span> <span class="token function">ls</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="系统控制命令" tabindex="-1"><a class="header-anchor" href="#系统控制命令"><span>系统控制命令</span></a></h2><h3 id="restart" tabindex="-1"><a class="header-anchor" href="#restart"><span>restart</span></a></h3><p>重启系统。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">restart</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="shutdown" tabindex="-1"><a class="header-anchor" href="#shutdown"><span>shutdown</span></a></h3><p>关闭系统。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">shutdown</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h2 id="备份与恢复命令" tabindex="-1"><a class="header-anchor" href="#备份与恢复命令"><span>备份与恢复命令</span></a></h2><h3 id="backup" tabindex="-1"><a class="header-anchor" href="#backup"><span>backup</span></a></h3><p>备份系统。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">backup <span class="token operator">&lt;</span>backup_file<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">backup mybackup.zip</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="restore" tabindex="-1"><a class="header-anchor" href="#restore"><span>restore</span></a></h3><p>恢复系统备份。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">restore <span class="token operator">&lt;</span>backup_file<span class="token operator">&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">restore mybackup.zip</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h2 id="测试命令" tabindex="-1"><a class="header-anchor" href="#测试命令"><span>测试命令</span></a></h2><h3 id="cuitest" tabindex="-1"><a class="header-anchor" href="#cuitest"><span>cuitest</span></a></h3><p>测试 CUI 框架。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">cuitest</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="testgui" tabindex="-1"><a class="header-anchor" href="#testgui"><span>testgui</span></a></h3><p>测试图形界面。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">testgui</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h3 id="labyrinth" tabindex="-1"><a class="header-anchor" href="#labyrinth"><span>labyrinth</span></a></h3><p>玩迷宫逃脱游戏。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line">labyrinth</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>说明：</strong></p><ul><li>使用方向键 (↑ ↓ ← →) 移动玩家</li><li>按 ESC 键退出游戏</li><li>目标是找到出口 (E) 并逃脱迷宫</li><li>玩家位置用绿色 @ 表示</li><li>出口位置用红色 E 表示</li><li>迷宫使用递归回溯算法随机生成</li></ul><h3 id="diff" tabindex="-1"><a class="header-anchor" href="#diff"><span>diff</span></a></h3><p>比较两个文件的差异。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">diff</span> <span class="token operator">&lt;</span>file<span class="token operator"><span class="token file-descriptor important">1</span>&gt;</span> <span class="token operator">&lt;</span>file<span class="token operator"><span class="token file-descriptor important">2</span>&gt;</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">diff</span> file1.txt file2.txt</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div><h2 id="环境变量命令" tabindex="-1"><a class="header-anchor" href="#环境变量命令"><span>环境变量命令</span></a></h2><h3 id="env" tabindex="-1"><a class="header-anchor" href="#env"><span>env</span></a></h3><p>管理环境变量。</p><p><strong>用法：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">env</span>                    <span class="token comment"># 列出所有环境变量</span></span>
<span class="line"><span class="token function">env</span> <span class="token operator">&lt;</span>name<span class="token operator">&gt;</span>             <span class="token comment"># 显示指定环境变量</span></span>
<span class="line"><span class="token function">env</span> <span class="token operator">&lt;</span>name<span class="token operator">&gt;</span> <span class="token operator">&lt;</span>value<span class="token operator">&gt;</span>     <span class="token comment"># 设置环境变量</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p><strong>示例：</strong></p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code><span class="line"><span class="token function">env</span></span>
<span class="line"><span class="token function">env</span> <span class="token environment constant">PATH</span></span>
<span class="line"><span class="token function">env</span> MYVAR hello</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="注意事项" tabindex="-1"><a class="header-anchor" href="#注意事项"><span>注意事项</span></a></h2><ol><li>所有命令不区分大小写</li><li>使用 <code>help</code> 命令可以查看所有可用命令</li><li>使用 <code>help &lt;command&gt;</code> 可以查看特定命令的详细帮助</li><li>文件路径使用反斜杠 <code>\\</code> 或正斜杠 <code>/</code> 均可</li><li>支持相对路径和绝对路径</li></ol>`,380)])])}const d=e(i,[["render",r]]),c=JSON.parse('{"path":"/commands.html","title":"命令列表","lang":"zh-CN","frontmatter":{},"headers":[{"level":2,"title":"系统命令","slug":"系统命令","link":"#系统命令","children":[{"level":3,"title":"echo","slug":"echo","link":"#echo","children":[]},{"level":3,"title":"clear / cls","slug":"clear-cls","link":"#clear-cls","children":[]},{"level":3,"title":"time","slug":"time","link":"#time","children":[]},{"level":3,"title":"date","slug":"date","link":"#date","children":[]},{"level":3,"title":"uptime","slug":"uptime","link":"#uptime","children":[]},{"level":3,"title":"whoami","slug":"whoami","link":"#whoami","children":[]},{"level":3,"title":"sleep","slug":"sleep","link":"#sleep","children":[]}]},{"level":2,"title":"文件系统命令","slug":"文件系统命令","link":"#文件系统命令","children":[{"level":3,"title":"ls","slug":"ls","link":"#ls","children":[]},{"level":3,"title":"cd","slug":"cd","link":"#cd","children":[]},{"level":3,"title":"pwd","slug":"pwd","link":"#pwd","children":[]},{"level":3,"title":"mkdir","slug":"mkdir","link":"#mkdir","children":[]},{"level":3,"title":"rm","slug":"rm","link":"#rm","children":[]},{"level":3,"title":"rmdir","slug":"rmdir","link":"#rmdir","children":[]},{"level":3,"title":"cat","slug":"cat","link":"#cat","children":[]},{"level":3,"title":"touch","slug":"touch","link":"#touch","children":[]},{"level":3,"title":"cp","slug":"cp","link":"#cp","children":[]},{"level":3,"title":"mv","slug":"mv","link":"#mv","children":[]},{"level":3,"title":"rename","slug":"rename","link":"#rename","children":[]},{"level":3,"title":"find","slug":"find","link":"#find","children":[]},{"level":3,"title":"tree","slug":"tree","link":"#tree","children":[]},{"level":3,"title":"head","slug":"head","link":"#head","children":[]},{"level":3,"title":"tail","slug":"tail","link":"#tail","children":[]},{"level":3,"title":"wc","slug":"wc","link":"#wc","children":[]},{"level":3,"title":"grep","slug":"grep","link":"#grep","children":[]},{"level":3,"title":"getdisk","slug":"getdisk","link":"#getdisk","children":[]}]},{"level":2,"title":"编辑器命令","slug":"编辑器命令","link":"#编辑器命令","children":[{"level":3,"title":"edit","slug":"edit","link":"#edit","children":[]},{"level":3,"title":"nano","slug":"nano","link":"#nano","children":[]}]},{"level":2,"title":"用户管理命令","slug":"用户管理命令","link":"#用户管理命令","children":[{"level":3,"title":"user","slug":"user","link":"#user","children":[]},{"level":3,"title":"cpass","slug":"cpass","link":"#cpass","children":[]},{"level":3,"title":"hostname","slug":"hostname","link":"#hostname","children":[]}]},{"level":2,"title":"网络命令","slug":"网络命令","link":"#网络命令","children":[{"level":3,"title":"ipconfig","slug":"ipconfig","link":"#ipconfig","children":[]},{"level":3,"title":"setdns","slug":"setdns","link":"#setdns","children":[]},{"level":3,"title":"setgateway","slug":"setgateway","link":"#setgateway","children":[]},{"level":3,"title":"nslookup","slug":"nslookup","link":"#nslookup","children":[]},{"level":3,"title":"ping","slug":"ping","link":"#ping","children":[]},{"level":3,"title":"wget","slug":"wget","link":"#wget","children":[]},{"level":3,"title":"ftp","slug":"ftp","link":"#ftp","children":[]},{"level":3,"title":"tcpserver","slug":"tcpserver","link":"#tcpserver","children":[]},{"level":3,"title":"tcpclient","slug":"tcpclient","link":"#tcpclient","children":[]}]},{"level":2,"title":"脚本命令","slug":"脚本命令","link":"#脚本命令","children":[{"level":3,"title":"lua","slug":"lua","link":"#lua","children":[]},{"level":3,"title":"com","slug":"com","link":"#com","children":[]},{"level":3,"title":"branswe","slug":"branswe","link":"#branswe","children":[]}]},{"level":2,"title":"实用工具命令","slug":"实用工具命令","link":"#实用工具命令","children":[{"level":3,"title":"calc","slug":"calc","link":"#calc","children":[]},{"level":3,"title":"history","slug":"history","link":"#history","children":[]},{"level":3,"title":"prompt","slug":"prompt","link":"#prompt","children":[]},{"level":3,"title":"background","slug":"background","link":"#background","children":[]},{"level":3,"title":"beep","slug":"beep","link":"#beep","children":[]},{"level":3,"title":"cal","slug":"cal","link":"#cal","children":[]},{"level":3,"title":"base64","slug":"base64","link":"#base64","children":[]},{"level":3,"title":"matrix","slug":"matrix","link":"#matrix","children":[]},{"level":3,"title":"app","slug":"app","link":"#app","children":[]},{"level":3,"title":"alias","slug":"alias","link":"#alias","children":[]},{"level":3,"title":"unalias","slug":"unalias","link":"#unalias","children":[]}]},{"level":2,"title":"系统信息命令","slug":"系统信息命令","link":"#系统信息命令","children":[{"level":3,"title":"version","slug":"version","link":"#version","children":[]},{"level":3,"title":"settings","slug":"settings","link":"#settings","children":[]},{"level":3,"title":"about","slug":"about","link":"#about","children":[]},{"level":3,"title":"help","slug":"help","link":"#help","children":[]}]},{"level":2,"title":"系统控制命令","slug":"系统控制命令","link":"#系统控制命令","children":[{"level":3,"title":"restart","slug":"restart","link":"#restart","children":[]},{"level":3,"title":"shutdown","slug":"shutdown","link":"#shutdown","children":[]}]},{"level":2,"title":"备份与恢复命令","slug":"备份与恢复命令","link":"#备份与恢复命令","children":[{"level":3,"title":"backup","slug":"backup","link":"#backup","children":[]},{"level":3,"title":"restore","slug":"restore","link":"#restore","children":[]}]},{"level":2,"title":"测试命令","slug":"测试命令","link":"#测试命令","children":[{"level":3,"title":"cuitest","slug":"cuitest","link":"#cuitest","children":[]},{"level":3,"title":"testgui","slug":"testgui","link":"#testgui","children":[]},{"level":3,"title":"labyrinth","slug":"labyrinth","link":"#labyrinth","children":[]},{"level":3,"title":"diff","slug":"diff","link":"#diff","children":[]}]},{"level":2,"title":"环境变量命令","slug":"环境变量命令","link":"#环境变量命令","children":[{"level":3,"title":"env","slug":"env","link":"#env","children":[]}]},{"level":2,"title":"注意事项","slug":"注意事项","link":"#注意事项","children":[]}],"git":{"updatedTime":1770370212000,"contributors":[{"name":"Leonmmcoset","username":"Leonmmcoset","email":"testmod@qq.com","commits":3,"url":"https://github.com/Leonmmcoset"}],"changelog":[{"hash":"361931c091130e507b2c98379ff0a45609505257","time":1770370212000,"email":"testmod@qq.com","author":"Leonmmcoset","message":"update"},{"hash":"b715d32556869be728358d6f42c0062b5abb8318","time":1770365910000,"email":"testmod@qq.com","author":"Leonmmcoset","message":"文档"},{"hash":"4384578fdb936483c76ffe61512a6530b54cf9ce","time":1770300033000,"email":"testmod@qq.com","author":"Leonmmcoset","message":"update"}]},"filePathRelative":"commands.md"}');export{d as comp,c as data};
