filesystem

/var — Changing application data

Common parent for logs, service state and caches. Some data is important and persistent; not a disposable directory. Example is read-only and assumes the path exists; layouts vary.

Formal Syntax & Structure

linux syntaxlinux
/var

Return Value

filesystem path

The listing describes the /var entry only. It cannot determine which child data is persistent, which logs are retained, or how much space is available.

Working Example

Example Snippetlinux
ls -ld /var
Linux Reference