xdg-user-dir(1)

xdg-user-dir1

Find an xdg user dir

Usage

xdg-user-dir [NAME]

Overview

xdg-user-dir looks up the current path for one of the special XDG user dirs.

This command expects the name of an XDG user dir as argument. The possible names are:

DESKTOP

DOWNLOAD

TEMPLATES

PUBLICSHARE

DOCUMENTS

MUSIC

PICTURES

VIDEOS

Files

The values are looked up in the user-dirs.dirs file. This file is created by the xdg-user-dirs-update utility.

Environment

The XDG_CONFIG_HOME environment variable determines where the user-dirs.dirs file is located.

Releases

7 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10–11
  4. 12
  5. 13
  6. Arch

Author

Alexander Larsson <[email protected]>

Developer

From xdg-user-dirs 0.20-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.