Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (9.5k points)

Can anyone tell me what’s the most suitable directory between /usr/local/myapp and  /var/lib/myapp to store the data for the application which I’m developing? 

1 Answer

0 votes
by (19.7k points)

/var will be better to go with as it is used to store variable data. But /usr will store only constant data. 

If you are using /usr/local/, you will have to provide an appropriate variable in the make file to install the software to /usr/lib/ / /usr/share / /usr/bin. The software which installed manually should reside in /usr/local/* and the software which is installed via .rpm / .deb / should be directly installed under the appropriate folders in /usr. 

 

 If you want to learn more about Linuxthen go through this Linux tutorial by Intellipaat for more insights.

Browse Categories

...