Home » Questions » Computers [ Ask a new question ]

Where on a Linux file system should someone put media intended to be accessible by all user accounts?

Where on a Linux file system should someone put media intended to be accessible by all user accounts?

If I have photos, mp3s, books and other miscellaneous stuff that I want all users to able to access from a common directory, where on a Linux file system should I put that directory? In /usr/share, or just in /usr, or create a new top-level directory instead?

Asked by: Guest | Views: 329
Total answers/comments: 1
Guest [Entry]

"<mode=pedant>
According to the Filesystem Hierarchy Standard, /usr is for ""shareable, read-only data""; /usr/share is for ""read-only architecture independent data files. ... for example, a site with i386, Alpha, and PPC platforms might maintain a single /usr/share directory that is centrally-mounted""

So yes, a subdirectory of /usr/share seems like an appropriate choice.
</mode>

<mode=pragmatist>

Less pedantically, /home (as suggested by raphink) seems like a good choice. You probably have /home on its own partition, both so that you can easily blow away the rest of the OS without touching user data (eg, when doing an upgrade or reinstall) and for ease of backup (as everything you care to back up is stored under /home), and for space management reasons (on most home boxes, the partition with /home ends up being the one that runs out of space first).

</mode>"