Operating System - HP-UX
1833998 Members
1730 Online
110063 Solutions
New Discussion

what are the files in /var/tmp in hp-ux 11.11

 
SOLVED
Go to solution
Hari Kumar
Trusted Contributor

what are the files in /var/tmp in hp-ux 11.11

Hi everybody !
Firstly its very Glad to meet u all !! and its very great from u all for u r very valuable contributions
Question :
can u please give me wot could be the files and thier purpose in "/var/tmp "
some of them are :
vmunix.noreloc ( this is very large file)
and lots of files of these names :
badlines27390...
baaaaXXXXX
aaaabXXXXXX
can we delete them ?
Information is Wealth ; Knowledge is Power
7 REPLIES 7
T G Manikandan
Honored Contributor

Re: what are the files in /var/tmp in hp-ux 11.11

All these files would be the temporary files.

you can delete the files with modification time more than 7 days.

List the files
#find /var/tmp -type f -mtime +7 -exec ll {} \;
Remove the files
#find /var/tmp -type f -mtime +7 -exec rm {} \;
for dir's
#find /var/tmp -type d -mtime +7 -exec rm -r {} \;


Thanks
T G Manikandan
Honored Contributor

Re: what are the files in /var/tmp in hp-ux 11.11

Still to be more safer you can delete the files with mtime 15 days instead of 7.

#find /var/tmp -type f -mtime +15 -exec rm {} \;
Jim Mallett
Honored Contributor

Re: what are the files in /var/tmp in hp-ux 11.11

These files should be temporary files and you can use the steps in TGs replies to delete them. If this is the first time you are clearing the folder out though I would make sure you have a backup of it.
We have a claims management system that relies on a folder within /var/tmp and I found out the hard way it shouldn't be removed. My understanding though is that is not common.

Jim
Hindsight is 20/20
ranganath ramachandra
Esteemed Contributor
Solution

Re: what are the files in /var/tmp in hp-ux 11.11

vmunix.noreloc is probably a kernel produced by mk_kernel, probably one on which vparreloc has run later to give you a relocated vpars-enabled kernel.

i guess its pretty safe to delete these.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

Steven E. Protter
Exalted Contributor

Re: what are the files in /var/tmp in hp-ux 11.11

These are temporary files that I delete on a seven day cycle as noted earlier in this thread.

No biggie.

There really isn't a lot in /var that you need to operate the machine. You need some of those logs to make sure you have an audit trail.


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Kent Ostby
Honored Contributor

Re: what are the files in /var/tmp in hp-ux 11.11

In general, I'll run an "ll -u" ( -u gives you a list of files but lists the date they were last accessed).

Then I might delete files last accessed prior to the current month:

ll -u /var/tmp | grep -v Sep | awk '{print "rm ",$NF}' > useme

chmod +x useme

./useme

The safest way would have you reboot the box and run something like the above after the reboot only substituting "Sep 24" for Sep ..

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Hari Kumar
Trusted Contributor

Re: what are the files in /var/tmp in hp-ux 11.11

Thanks alot for all who took their Valuable time to answer.
Information is Wealth ; Knowledge is Power