Display file or filesystem status.

Synopsis

stat [OPTION]... FILE...

Description

Display detailed information about files or directories. Runs in the just-bash WASM shell inside SLICC.

Options

-c, --format=FORMAT Use the specified FORMAT instead of the default.

--help Display help and exit.

Format Specifiers

%n File name.

%s Size in bytes.

%F File type.

%a Access rights in octal.

%y Time of last modification (human-readable).

Examples

$ stat file.txt

Display file status.

$ stat -c '%s' file.txt

Display only the file size.

Notes

Operates on the SLICC virtual filesystem (LightningFS/IndexedDB). Some metadata fields are simulated.

See Also

ls, du, df, chmod