Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does Linux/Unix have a unified location for Application files, like "~/Library/Application Support" on Mac OS X? I'm making a Python script that will need to store permanent but changing data, and I want it to work universally.

share|improve this question
It's not a answer for your question but it's about historical reasons for files organisation in unix and could be interesting for you -lists.busybox.net/pipermail/busybox/2010-December/074114.html – Maciek Sawicki May 20 '12 at 23:40
up vote 5 down vote accepted

Have a look at the XDG Base Directory Specification. In your case it should probably be $XDG_DATA_HOME:

$XDG_DATA_HOME defines the base directory relative to which user specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used.

Please note: if you are writing a daemon you should use something like /var/lib/ or /var/cache/ to save your data.

share|improve this answer

Unfortunately there's pretty much no standard for user-specific configuration on linux systems...

Many apps will use a directory like ~/.vim, some will use ~/.config/openbox, some will use ~/.local/share

Really it doesn't matter at all as anything in the home directory will work, it's just that it can get pretty messy, but I'd recommend either the first or the second styles personally.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.