此命令属于所选 lil-terminal 核心,不作为普通扩展安装。
cd
切换当前目录并立即显示内容,同时支持上一个目录、~ 基准目录和 \ 安装根目录。
概览
使用
直接进入正确的目录
当下一步操作比深层目录树更重要时使用
语法
cd [path|-] [-s|-S] [-d|-D]参考
cd | cd .显示当前目录的平面列表
cd <path>转到相对路径、绝对路径、“~”路径或“\”路径
cd ..返回上一级
cd -切换到上一个目录
cd ~转到通过 @pwd 选择的目录
cd \转到 lil 核心所在目录
-s显示文件大小
-S显示文件和目录大小
-d显示修改日期
-D显示修改日期和时间
列
-s 显示文件大小,目录位置显示短横线。-S 还会递归统计目录内容大小。该统计有明确上限;无法读取或在限制内未完成统计的目录显示为 ?。大小和日期参数的先后顺序决定列顺序:
说明
相对路径从 lil-terminal 当前目录开始。“~”前缀从
交互式 sandbox 预览
可直接在页面中运行预先准备的示例。结果已预先生成并在浏览器中显示;服务器不会执行任何终端命令。
安装与管理
安装当前兼容版本。完整功能请选择 Base,精简包请选择 Minimum;已安装模块的更新请使用 upgrade。
Base 与 Minimum 是同一当前模块版本的两个包。
示例
示例可复制,但网站不会执行。请先检查路径、权限和破坏性选项。
cd \sandbox | cd data | cd .. | cd -config/
data/
db/
images/
logs/
public/
scripts/
tmp/
workspace/
sample.csv
sample.txt
users.json
config/
data/
db/
images/
logs/
public/
scripts/
tmp/
workspace/
sample.csv
sample.txt
users.jsoncd \sandbox -s -d - 2026-08-04 archives
- 2026-08-09 config
127 B 2026-08-09 feed.xml
718 B 2026-08-10 README.txtcd \sandbox -d -s2026-08-04 - archives
2026-08-09 - config
2026-08-09 127 B feed.xml
2026-08-10 718 B README.txtcd \sandbox -S -D6.5 KB 2026-08-09 03:58:34 certs
1.0 KB 2026-08-09 12:22:13 config
127 B 2026-08-09 01:00:07 feed.xml
718 B 2026-08-10 15:47:59 README.txtcd sandboxconfig/
data/
images/
src/
.env.example
app.ini
app.json
feed.xmlcd "sandbox/sample project"assets/
index.html
README.mdcd ..sandbox/
website_e36e9fed/cd -sandboxcd ~sandboxcd \sandboxcd \sandbox\missing未找到目录本示例使用的文件: sandbox/README.txt
该示例使用受保护的 /sandbox/ 文档工作区中的文件或目录。
lil-terminal documentation sandbox
This directory is part of the server tree: website_e36e9fed/sandbox/.
It is never included in generated lil-terminal downloads and direct HTTP access is blocked.
The documentation renderer reads only explicitly allow-listed files from here and
uses them to show real, reproducible command examples.
The fixtures are intentionally small and contain no secrets. They cover PHP, HTML,
CSS, JavaScript, JSON, INI, SQL, Python, shell, XML/SVG, CSV, plain text, logs,
images, .lil workflows, archives and temporary work paths.
During module review, examples may be refined together with the command. Keep paths
stable whenever possible because public documentation links refer to them.