whatis var-directory

/var

Also known as: var directory, /var/log

The directory for variable data that changes while the system runs: logs, caches, spools, databases, and package state.

What Is the /var Directory in Linux?

/var/log holds log files, /var/cache holds regenerable caches, /var/lib holds persistent application state (databases, Docker images, package manager records), and /var/spool holds queued mail and print jobs.

A full /var is a common cause of broken services, since daemons cannot write logs or state. du -sh /var/* quickly shows what is taking the space.

Example

sudo du -sh /var/* | sort -h