Install the complete package with local command reference and every published mode.
install dirdirDisplay directory trees with depth, masks, filters, sorting, metadata and totals.
Use
Use depth, masks and sorting to turn a large tree into a question: what exists here, where is it, and which entries matter?
dir [depth] [path] [mask] [options]dir | dir 1show a one-level tree for the current directory
dir 0 [path]show a flat list
dir <depth> [path]show a tree to the selected depth
dir -R [path]show the recursive tree
dir [path] <mask>show matching files and only the parent directories needed to reach them
-F | -fshow directories only | files only
-pshow full paths
-G | -gput directories first | files first
-sumshow totals for directories, files, links and size
-a | -Asort by name ascending | descending
-e | -Esort by extension ascending | descending
-d | -Dsort by modified time ascending | descending
-s | -Ssort by size ascending | descending
-ushow filesystem owner
Every option begins with -. In each sort pair, the lowercase flag sorts ascending and the matching uppercase flag sorts descending. -d/-D also shows modification time, -s/-S shows size and -u adds the filesystem owner. Metadata appears immediately before the name/tree column. Date, size and owner stay compact on the left, while names and paths receive the remaining width. -G/-g groups entry types without changing the selected sort key.
-F limits output to real directories and -f to regular files; symbolic links remain a distinct entry type. A mask such as "*.php" filters files while retaining the parent directories needed to show where matches were found. -p expands displayed names to full lil-terminal paths.
Depth is limited to 20 and a single run scans at most 5000 entries. Symbolic-link directories are displayed but never followed recursively.
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 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.
Install the complete package with local command reference and every published mode.
install dirInstall the reduced package. Local reference is omitted;
install dir -mInstall exactly this published version.
install dir -v 1.2.4Ask upgrade to check compatibility and replace the installed block only when needed.
upgrade dirRemove the extension block while leaving the core and unrelated modules intact.
install dir -uExamples 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 | dir 2 . -G -aarchives
config
.env.example
app.ini
app.json
data
sample.csv
sample.txt
users.jsondir 0 \sandbox -p/sandbox/archives
/sandbox/config
/sandbox/data
/sandbox/feed.xml
/sandbox/imagesdir 3 \sandbox "*.php" -Gsrc
Calculator.php
index.php
scripts
task.pydir 2 \sandbox -Farchives
config
data
db
images
logs
public
scripts
tmp
workspacedir 2 \sandbox -f -eREADME.txt
feed.xml
new.txt
test.txtdir 2 \sandbox -d2026-08-04 23:20:34 archives
2026-08-08 23:20:40 config
2026-08-08 20:18:28 new.txtdir 2 \sandbox -S 39 KB 123.jpg.tar
37.4 KB 123.jpg
1.3 KB feed.xmldir 1 \sandbox -uwww-data archives
www-data config
www-data feed.xmldir 2 \sandbox -sumarchives
config
data
...
Directories 10
Files 18
Links 0
Size 44.2 KBdir 2 \sandbox -F -fConflicting filterssandbox/README.txtThe 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.
Widens metadata spacing and aligns compact byte-size values while keeping standard B, KB, MB, GB and TB units.