This command is part of the selected lil-terminal core and is not installed as an ordinary extension.
cd
Change the current directory and show its contents immediately, with shortcuts for the previous directory, the ~ base and the \ installation root.
Overview
Use
Go straight to the right directory
Use
Syntax
cd [path|-] [-s|-S] [-d|-D]Reference
cd | cd .show a flat list for the current directory
cd <path>move to a relative, absolute, "~" or "\" path
cd ..move one level up
cd -switch to the previous directory
cd ~move to the directory selected through @pwd
cd \move to the directory containing the lil core
-sshow file sizes
-Sshow file and directory sizes
-dshow modification dates
-Dshow modification dates and times
Columns
-s shows file sizes and leaves directories as a dash. -S also measures directory contents recursively. Directory measurement is deliberately bounded; an unreadable or unfinished directory is shown as ?. The order of size and date flags controls the column order:
Notes
Relative paths start from the current lil-terminal directory. The "~" prefix starts from the directory selected with
Interactive sandbox preview
Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.
Install and manage
Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.
Base and Minimum are two packages of the same current module release, not separate command versions.
Examples
Examples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.
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\missingDirectory not foundFile used in this example: sandbox/README.txt
The example uses a file or directory from the protected /sandbox/ documentation workspace.
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.
Related documentation
Current release
Ordered columns and directory sizes
Adds -S for directory-size measurement, follows the order of size/date flags when building columns and widens metadata spacing.