I am studying Unix-like filesystem structure especially FHS (Filesystem Hierarchy Standard). Anyways I know in the recent FHS /var/run is moved to /run.

I can’t understand the difference between lib and run. Can someone elaborate this with an example?


See this website for more details. In short:

  • /var/run (Run-time variable data) contains data that’s associated to running programs; in particular these files should be (re)created at boot/start.
  • /var/lib (Variable state information) on the other hand contains data that should persist between program invocations and over reboots.

Your Answer

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

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