stat

Show type, permissions, owner, size, timestamps and link data; full mode adds filesystem details.

FilesVersion 1.1.5Stable
lil-terminal

Overview

stat brings path, type, permissions, owner, timestamps, size and link information into one aligned report—useful before changing a file, directory or permission set.

See what the filesystem knows

Use the brief view for routine checks and -f when you need ownership, timestamps, access flags or filesystem details.

Syntax

lil-terminal
stat [path] [-f] [-L]

Reference

stat

show brief information for the current directory

stat <path>

show brief information without following a symbolic link

-f

show full filesystem information

-L

follow a symbolic link and inspect its target

Brief view

Files show path, type, extension and installed handlers, size, permissions and modification time. Directories show path, type, immediate item count, permissions and modification time.

Full view

-f preserves the extended metadata view with real path, name, directory, MIME type or directory counts, ownership identifiers, access flags, timestamps and filesystem capacity when PHP can read them.

Symbolic links

Without -L, stat inspects the link itself. With -L, metadata is taken from the resolved target. A broken target is reported rather than silently ignored.

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.

Show brief information without following a symbolic link

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 stat
Minimum package

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

install stat -m
Exact public version

Install exactly this published version.

install stat -v 1.1.5
Check or update

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

upgrade stat
Remove module

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

install stat -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.

Show brief information without following a symbolic link
cd \sandbox | stat data/sample.txt
Path         data/sample.txt
Type         file
Extension    txt · @edit
Size         100 b (100 B)
Permissions  0644  -rw-r--r--
Modified     2026-08-09 16:01:21
Show brief information without following a symbolic link
stat images
Path         images
Type         directory
Items        2
Permissions  0755  drwxr-xr-x
Modified     2026-08-09 12:52:02
Show brief information without following a symbolic link
stat images/icon.svg
Path         images/icon.svg
Type         file
Extension    svg · @edit
Size         1 024 b (1 KB)
Permissions  0644  -rw-r--r--
Modified     2026-08-09 12:52:02
Show brief information without following a symbolic link
stat missing.txt
File not found: missing.txt

File used in this example: sandbox/data/sample.txt

The example uses a file or directory from the protected /sandbox/ documentation workspace.

lil-terminal sandbox text file

This file is safe to read, copy, rename, replace, hash and archive.

Related documentation

Current public release

v1.1.52026-08-10

Core .lil handler visibility

Shows @core as the highest-priority handler for .lil scripts before installed editors.