XDG Base Directory

From wikinotes

The XDG Base Directory spec determines where to store files in linux.

  • config files
  • cache files
  • data files

Documentation

official docs https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

Locations

~/.config/{program}/ $XDG_CONFIG_HOME/{program}
~/.local/share/{program} $XDG_DATA_HOME/{program}
~/.cache/{program} $XDG_CACHE_HOME/{program}