man > xdg-user-dir(1)

TLDR: xdg-user-dir (tldr-pages)

Retrieve XDG user directory locations.

  • Display the home directory for the current user
    xdg-user-dir
  • Display the location of a user directory
    xdg-user-dir {{DESKTOP|DOWNLOAD|TEMPLATES|PUBLICSHARE|DOCUMENTS|MUSIC|PICTURES|VIDEOS|...}}
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
           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.

SEE ALSO
       xdg-user-dirs-update(1)

XDG                                                                                  XDG-USER-DIR(1)

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-04 09:31 @216.73.217.103
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!