LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Extraneous log files Windoze vs. Linux - am I being naive? (https://www.linuxquestions.org/questions/linux-newbie-8/extraneous-log-files-windoze-vs-linux-am-i-being-naive-659122/)

taylorkh 07-29-2008 07:10 PM

Extraneous log files Windoze vs. Linux - am I being naive?
 
Whenever I defragment my OS partition in Windoze XP I seem to come across another .log or .dat file which is slowly (and fragmentedly) growing. Research shows these to be associated with Windoze or Internet Explorer (which I do not use) or Zone Alarm (firewall) or Nero (CD/DVD playing and burning) or some other program. The files are generally not in a directory associated with the program, rather they are hidden in some obscure directory. My research usually is not able to uncover what the function of these files might be. The vendors seem to be keeping this information secret.

I have not yet really burrowed through my Linux partitions - guess I need to start on that soon. My question is... should I expect to find a similar situation with Linux or are Linux and its programs better behaved?

Thanks,

Ken

Ubuntu 7.10 and 8.04

Mr. C. 07-29-2008 07:24 PM

Linux is a kernel and does not institute any file system hierarchy policy.

You are referring to the behavior of various programs that run on Linux. Each program is free to place its various files where it pleases, but in general, they are typically somewhere in your home directory. Some programs log to system-wide logs (eg. /var/log/*) while others store log data somewhere under a user's home directory.

On the whole, programs are well behaved. But there is a fair amount of consistency in Windows too; its just that the standards for location of various program-private data is more known to developers than to users. Much of this is enforced by hiding various directories, and the inheritance of All Users and Default User data stores to ones own user settings, making various data files, logs, and prefs files a nightmare to find and manage in Windows.

So, programs that have simple preferences are usually stored in a single dot file in your home directory. Programs that require more complex or multiple data files might store in a dot sub-directory of your home directory. But that's usually about as bad as it gets.


All times are GMT -5. The time now is 07:47 AM.