Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-14-2006, 11:01 PM   #1
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Logging/Data; where to store

Till now, my apps wrote files in the user's directory. For a new app, I need to store a data file somewhere where all users of a system can create, read and update a file.

/var seems to be the correct place, but I'm not sure how to go about it (with regards to 'standards').
Is /var the correct place ?
Any specific subdirectory? The data in the file can either be seen as data or as log information. From that, either /var/lib/myapp/myfile or /var/log/myapp/myfile seem to be feasable. Or is there another one with regards to 'standards'?
Old 11-15-2006, 12:26 AM   #2
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
why don't choose /opt/yourapp, /usr/local/yourapp, this is recommended place if you don't want to use /var.


directory, log

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
store data in / bruse Linux - Newbie 2 05-01-2005 11:28 AM
Store data (langage C) os2 Programming 4 03-24-2005 04:23 PM
Store Data in Flash subrahmanyam Linux - Newbie 1 11-08-2004 12:18 PM
Store data in Flash subrahmanyam Programming 1 11-08-2004 12:06 PM
Store data in Flash subrahmanyam Linux - Software 1 11-08-2004 09:34 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration