LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Files are vanished in OEL 5.0 (https://www.linuxquestions.org/questions/red-hat-31/files-are-vanished-in-oel-5-0-a-680248/)

masatheesh 10-31-2008 06:56 AM

Files are vanished in OEL 5.0
 
Hi,

I am using Oracle Enterprise Linux 5.0.This is same like RHEL distribution.Sometimes some files are missing.Some example files are *.exe, *.war.Can anyone let me know the solution? Please

unSpawn 11-02-2008 07:37 AM

How did they get lost? Removed? Examples just not installed? Does the vendor support its distribution? What does it have to say about it?

pixellany 11-02-2008 07:42 AM

You would not expect to see .exe files in Linux. "exe" is an extension used for Windows executables. I don't know what a .war file is, and I have never seen one.

As unSpawn implies, you would need to tell us exactly what is missing (and what is not working).

colucix 11-02-2008 07:49 AM

Quote:

Originally Posted by pixellany (Post 3329059)
I don't know what a .war file is, and I have never seen one.

Just an aside note: war files are java web archives. I've seen them when installing web applications using tomcat.

masatheesh 11-26-2008 11:28 PM

I have some important files in /tmp location.Now I cant see these files.I think I dont want to mention all those file names.These files are just documentation.Thats it.You can assume that some contents of /tmp folder are missing.

It may be the virus issue?

colucix 11-27-2008 03:12 AM

Quote:

Originally Posted by masatheesh (Post 3356267)
It may be the virus issue?

Nope. The /tmp directory is used by various applications to store temporary files. Temporary means they have not to be stored permanently, therefore there must be a mechanism to remove them periodically. Indeed most unix systems remove temporary files using a cron job, either by the find and rm command or by tmpwatch. In short the rule is: don't keep valuable data in the /tmp directory, since sooner or later they will be pushed in a black hole! ;)

masatheesh 11-27-2008 04:11 AM

If this is the case,will the Unix system remove the part of /tmp contents? Because I can see some old files which were created along with missing files.

masatheesh 12-03-2008 05:04 AM

Hi Colucix,

Is there any possible to find out cron job? If so,can you please let me know to delete that cron job?

colucix 12-03-2008 05:31 AM

In RHEL5 it should be controlled by /etc/cron.daily/tmpwatch which will be in turn managed by the system crontab - /etc/crontab - through the run-parts mechanism. See man run-parts and man tmpwatch for details, then you will find out the correct way to remove the cron job. But... I strongly suggest to not wipe it off, otherwise the /tmp directory (and its partition) can fill up in a short period of time. Simply, I would not keep valuable data in /tmp directory.


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