M BUZZ CRAZE NEWS
// news

What is ~/.local folder in Mac OS used for?

By Joseph Russell

As title. I'm a (Neo)Vim user and today I noticed that some of the neovim files are stored in ~/.local/share/nvim/, and it is the only folder inside it. Now I'm considering putting some of the log files under the ~/.local/share/. the folder is named "share" so I'm also wondering whether it would indeed imply that the folder would be shared?

4

3 Answers

It contains shared resources, not files which can be shared with other users. [I'm not quite sure exactly what they're shared with, but Wine uses the same structure]

You can confirm this just using Finder set to show invisibles Cmd ⌘ Shift ⇧ . & getting Info on the folder.

enter image description here

This folder is often found on Linux. It is part of the XDG Base Directory Specification. Another related folder is ~/.config.

~/.local/share is for "user-specific data files". The related /usr/share folder is "for all read-only architecture independent data files" in the Filesystem Hierarchy Standard.

See also this Ask Ubuntu question and answer.

That's not a path defined by Apple. It was probably chosen by whoever created the nvim installer you used. The name suggests that it's stuff that would go in /usr/local in a traditional Unix filesystem layout, but the nvim installer puts it in ~/.local when you don't have admin privileges to modify the system-wide /usr/local when you install nvim.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy