Files
cheatsheet-tldr/tldr/linux/xdg-user-dirs-update
2025-12-23 00:21:40 +00:00

19 lines
571 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# xdg-user-dirs-update
> Update XDG user directories.
> See also: `xdg-user-dir`.
> More information: <https://manned.org/xdg-user-dirs-update>.
- Change XDG's DESKTOP directory to the specified directory:
`xdg-user-dirs-update --set DESKTOP "/{{path/to/directory}}"`
- Write the result to the specified dry-run-file instead of the `user-dirs.dirs` file:
`xdg-user-dirs-update --dummy-output "{{path/to/dry_run_file}}" --set {{xdg_user_directory}} "/{{path/to/directory}}"`