System
XDG_CONFIG_HOME
Base directory for user-specific configuration files.
Ubuntu
Debian
Arch
Fedora
CentOS
SUSE
Alpine
macOS
FreeBSD
Verified: 2026-05-12
Syntax
$echo $XDG_CONFIG_HOME
Examples
$echo ${XDG_CONFIG_HOME:-$HOME/.config}
$ls ${XDG_CONFIG_HOME:-$HOME/.config}
Typical use cases
?
Standard usage
XDG_CONFIG_HOME --help
Note
Part of the XDG Base Directory Specification.
Export