Library. In Unix, the directories /lib and /usr/lib traditionally contain files with filename extension ".lib" that are special archives containing modules of standard object code. In modern Unixes the same directories contain ".so" (shared object) files, which are similar except that the object code they contain is designed to be loaded once and shared by all application code that needs it, thus saving memory.