Default user directories on various operating systems
Info
These directory locations are defined by:
- The XDG base directory and the XDG user directory specifications on Linux
- The Known Folder system on Windows.
- The Standard Directories on macOS.
Configuration
Platform | Value | Example |
---|---|---|
Linux | $XDG_CONFIG_HOME or $HOME /.config |
/home/alice/.config |
macOS | $HOME /Library/Application Support |
/Users/Alice/Library/Application Support |
Windows | {FOLDERID_RoamingAppData} |
C:\Users\Alice\AppData\Roaming |
(Source: https://docs.rs/dirs/4.0.0/dirs/fn.config_dir.html)
Data
Platform | Value | Example |
---|---|---|
Linux | $XDG_DATA_HOME or $HOME /.local/share |
/home/alice/.local/share |
macOS | $HOME /Library/Application Support |
/Users/Alice/Library/Application Support |
Windows | {FOLDERID_LocalAppData} |
C:\Users\Alice\AppData\Local |
(Source: https://docs.rs/dirs/4.0.0/dirs/fn.data_dir.html)
Cache
Platform | Value | Example |
---|---|---|
Linux | $XDG_CACHE_HOME or $HOME /.cache |
/home/alice/.cache |
macOS | $HOME /Library/Caches |
/Users/Alice/Library/Caches |
Windows | {FOLDERID_LocalAppData} |
C:\Users\Alice\AppData\Local |