XDG Base Directory specification

Contents

    XDG Base Directory Specification
    XDG user dirs

    Default values

    $XDG_DATA_HOME    → $HOME/.local/share
    $XDG_CONFIG_HOME  → $HOME/.config
    $XDG_CACHE_HOME   → $HOME/.cache
    $XDG_DATA_DIRS    → /usr/local/share/:/usr/share/
    $XDG_CONFIG_DIRS  → /etc/xdg
    $XDG_RUNTIME_DIR  →
    

    By default, the directories are stored into ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs file.

    Inside a script

    test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
    dataHome=${XDG_DATA_HOME:-$HOME/.local/share}
    configHome=${XDG_CONFIG_HOME:-$HOME/.config}
    cacheHome=${XDG_CACHE_HOME:-$HOME/.cache}
    

    Query / Update commands

    Proudly Powered by Zim 0.75.2.

    Template by Etienne Gandrille, based on ZeroFiveEight and using JQuery Toc Plugin.