# phpman > man > XDG-USER-DIR(1)

> **TLDR:** 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|...}}`

*Source: tldr-pages*

---

[XDG-USER-DIR(1)](https://www.chedong.com/phpMan.php/man/XDG-USER-DIR/1/markdown)                             User Commands                            [XDG-USER-DIR(1)](https://www.chedong.com/phpMan.php/man/XDG-USER-DIR/1/markdown)



## 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.dir 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)](https://www.chedong.com/phpMan.php/man/xdg-user-dirs-update/1/markdown)



XDG                                                                                  [XDG-USER-DIR(1)](https://www.chedong.com/phpMan.php/man/XDG-USER-DIR/1/markdown)
