filesystem
/var/log — Log directory convention
Common place for persisted service and system logs; some logs instead live in runtime storage or remote logging. Do not publish sensitive log contents. Example is read-only and assumes the path exists; layouts vary.
Formal Syntax & Structure
linux syntaxlinux
/var/logReturn Value
filesystem path
The listing describes the /var/log directory entry without reading logs. A successful result does not verify logging, retention, access to log files, or whether services use a different destination.
Working Example
Example Snippetlinux
ls -ld /var/log