/var

The directory for data that changes while the system runs, such as logs, caches, spools and package databases.

In more detail

Unlike /etc, which is edited occasionally, /var grows and shrinks constantly: /var/log holds logs and /var/cache holds caches. When a disk fills up, /var is often where the space went. Its contents persist across reboots, unlike /tmp on many systems.

Related terms

Taught in

References

Certification courses