XDG-USER-DIR(1) User Commands XDG-USER-DIR(1) NAME xdg-user-dir - Find an XDG user dir SYNOPSIS xdg-user-dir NAME DESCRIPTION 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 DOCUMENTS DOWNLOAD MUSIC PICTURES PROJECTS PUBLICSHARE TEMPLATES VIDEOS FILES .PP The values are looked up in the user-dirs.dirs file. This file is created by the xdg-user-dirs-update utility. ENVIRONMENT .PP The XDG_CONFIG_HOME environment variable determines where the user-dirs.dirs file is located. EXIT STATUS .PP On success 0 is returned, a non-zero failure code otherwise. EXAMPLES Print the path of the current user's Downloads directory: xdg-user-dir DOWNLOAD Use in a shell script: cd "$(xdg-user-dir DOCUMENTS)" SEE ALSO .PP xdg-user-dirs-update(1), user-dirs.dirs(5) AUTHOR Alexander Larsson Developer XDG 08/01/2026 XDG-USER-DIR(1)