What Is /var/cache

Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.

Last updated: April 11, 2026

Quick Answer: /var/cache is a directory in Linux and Unix-like operating systems that stores temporary cache data for applications and system services. According to the Filesystem Hierarchy Standard (FHS), introduced in 1994, this directory is designed to hold application cache files that can be safely deleted without affecting system functionality, though doing so may temporarily impact performance. The cache data stored here helps applications run faster by avoiding repeated computations or downloads.

Key Facts

Overview

/var/cache is a standard directory found in Linux, BSD, and other Unix-like operating systems that serves as a centralized storage location for application cache files. Defined by the Filesystem Hierarchy Standard (FHS), which was first introduced in 1994 and formalized in version 2.2 in 2000, this directory contains temporary data that applications generate to improve performance. Unlike system files in /var or permanent user data, cache contents are expendable and can be safely removed without compromising system stability or functionality.

The purpose of /var/cache is to provide a consistent, standard location where developers can store cached data according to system conventions rather than using arbitrary temporary directories. This standardization allows system administrators to manage cache across multiple applications from a single location and helps prevent disk space issues. Cache files can include downloaded packages, compiled files, web server cached content, DNS resolver caches, and font caches—essentially any data that can be quickly regenerated if needed.

How It Works

The /var/cache directory operates on a simple principle: applications read and write temporary data that improves their performance without storing essential information. Here's how it functions:

Key Comparisons

DirectoryPurposeDeletion SafetyTypical Size
/var/cacheApplication cache dataSafe to delete500MB-5GB
/var/tmpTemporary data, survives rebootsSafe to delete100MB-2GB
/tmpTemporary data, cleared on rebootSafe to delete50MB-1GB
/var/logSystem logs and activity recordsShould not delete1GB-50GB
/homeUser data and settingsDangerous to delete10GB+

Why It Matters

Understanding /var/cache's role in the filesystem hierarchy helps system administrators optimize storage management and application performance. By recognizing which data is truly essential versus expendable, administrators can make informed decisions about cleanup strategies, storage allocation, and system maintenance scheduling. The standardized approach defined by the Filesystem Hierarchy Standard ensures consistent behavior across different Linux distributions and Unix-like systems.

Sources

  1. Filesystem Hierarchy Standard - WikipediaCC-BY-SA-4.0
  2. Linux Foundation FHS 2.3 Official SpecificationCustom - Linux Foundation
  3. Linux Filesystem Hierarchy Manual PageGPL

Missing an answer?

Suggest a question and we'll generate an answer for it.