8.9 /lib, /usr, /opt, /srv: Libraries, User Hierarchy, Add-Ons, Services
Right, let’s talk about where your system actually puts all its stuff. You’ve probably poked around in the root directory (/) and seen a bunch of these cryptic folders. They’re not there by accident (well, mostly). They follow a grand, ancient blueprint called the Filesystem Hierarchy Standard, or FHS. It’s the reason you can, generally, expect to find libraries in /lib and not, say, in /where_did_i_put_that. We’re going to crack open four of the most commonly misunderstood ones: /lib, /usr, /opt, and /srv.