disk

disk reports filesystem capacity for a path; with -r it separately measures the contents of a directory.

DiagnosticsVersion 1.2.1Stable
lil-terminal

Overview

Filesystem capacity and directory size are different questions. Use disk <path> for the hosting volume and add -r only when you also need a bounded recursive measurement.

Filesystem capacity versus directory size

A file or directory lives inside a filesystem. Total, Used and Free describe that whole filesystem, while a directory size describes only the files below one path. disk keeps those measurements separate; recursive scans are bounded and do not follow symbolic links.

Syntax

lil-terminal
disk [path] [-r]

Reference

disk

show filesystem capacity for the current directory

disk <path>

show filesystem capacity for the selected file or directory

disk <dir> -r

also measure the contents of the selected directory recursively

Capacity versus directory size

Total, Used and Free refer to the underlying hosting filesystem, not to the selected directory itself. The recursive section appears only with -r and reports item counts plus the measured file bytes below that directory.

Limits

Recursive scanning is bounded and does not follow symbolic links. A scan-limit or unreadable-entry count is reported instead of allowing an unbounded walk through a hosting tree. A trailing slash has no special meaning; use -r when recursive usage is wanted.

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.

Compare filesystem capacity and directory size

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.

Base package

Install the complete package with local command reference and every published mode.

install disk
Minimum package

Install the reduced package. Local reference is omitted; help <cmd> -i opens the current server reference.

install disk -m
Exact public version

Install exactly this published version.

install disk -v 1.2.1
Check or update

Ask upgrade to check compatibility and replace the installed block only when needed.

upgrade disk
Remove module

Remove the extension block while leaving the core and unrelated modules intact.

install disk -u

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.

Compare filesystem capacity and directory size
cd \sandbox | disk . | disk . -r
1.0 GB
320 MB (31.2%)
704 MB

18
12
6
0
2.1 KB
Show filesystem capacity for the selected file or directory
disk sandbox/data
Path   sandbox/data
Total  1.0 GB
Used   320 MB (31.2%)
Free   704 MB
Also measure the contents of the selected directory recursively
disk sandbox/data -r
Path         sandbox/data
Total        1.0 GB
Used         320 MB (31.2%)
Free         704 MB

Items        3
Files        3
Directories  0
Links        0
Size         2.1 KB
Also measure the contents of the selected directory recursively
disk sandbox/images -r
Path         sandbox/data
Total        1.0 GB
Used         320 MB (31.2%)
Free         704 MB

Items        3
Files        3
Directories  0
Links        0
Size         2.1 KB
Handle a missing path
disk \sandbox\missing
Path not found

File 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 public release

v1.2.12026-08-09

Explicit recursive disk usage

Current stable release of disk. disk reports filesystem capacity for a path; with -r it separately measures the contents of a directory.