xdg-user-dir
Query XDG user directory paths
TLDR
Show home directory
$ xdg-user-dir
Show specific directory$ xdg-user-dir [DESKTOP|DOWNLOAD|TEMPLATES|PUBLICSHARE|DOCUMENTS|MUSIC|PICTURES|VIDEOS]
SYNOPSIS
xdg-user-dir [DIRECTORY]
DESCRIPTION
xdg-user-dir retrieves the path of XDG user directories as defined in the user-dirs.dirs configuration file. These are the standard directories for common content types like documents, music, and downloads.
The paths are configured in ~/.config/user-dirs.dirs and can be customized per user.
PARAMETERS
DESKTOP
Desktop directoryDOWNLOAD
Downloads directoryDOCUMENTS
Documents directoryMUSIC
Music directoryPICTURES
Pictures directoryVIDEOS
Videos directoryTEMPLATES
Templates directoryPUBLICSHARE
Public share directory
CAVEATS
Returns home directory if the requested directory is not configured. Directory paths may not exist on the filesystem.
SEE ALSO
xdg-user-dirs-update(1), xdg-open(1)
