HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

xdg-user-dir — Retrieve XDG user directory locations. See also: `xdg-user-dirs-update`. More information: <https://

Submitted by: @import:tldr-pages··
0
Viewed 0 times
directoryxdg-user-dircommandxdgretrieveclilocationsuser
linux

Problem

How to use the xdg-user-dir command: Retrieve XDG user directory locations. See also: xdg-user-dirs-update. More information: <https://manned.org/xdg-user-dir>.

Solution

xdg-user-dir — Retrieve XDG user directory locations. See also: xdg-user-dirs-update. More information: <https://manned.org/xdg-user-dir>.

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}}

Code Snippets

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}}

Context

tldr-pages: linux/xdg-user-dir

Revisions (0)

No revisions yet.