Can I safely delete all the "0" size files in /home/username/tmp ?

Lisa Kachold lisakachold at obnosis.com
Sun Jan 4 19:27:08 MST 2009


Check the dates on the *socket* orbit* and you will see some that are


fresh. They are used for communications with your desktop, and 
yes they can be deleted.

You probably should not be running your KDE/GNOME desktop from root, BTW!

1) Cleanup:

add:

 


/bin/rm $HOME/tmp


/bin/mkdir $HOME/tmp

 


in $HOME/.bash_logout

2) tmpwatch or cron

You can setup tmpwatch &&/or a daily cron job as follows:

----------------------------cut---------------------------

#!/bin/sh
 

[ -f /etc/sysconfig/tmpwatch ] && . /etc/sysconfig/tmpwatch
 

/usr/sbin/tmpwatch $TMPWATCH_EXCLUDES

240 /tmp /var/tmp /home/seaeagle/tmp /home/seaeagle/.thumbnails
 

[ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n

if [ -d /usr/share/man/$LANG/ ] && [ -d /var/catman/$LANG/ ]; then

/usr/sbin/tmpwatch -f 240 /var/catman/{X11R6/cat?,cat?,local/cat?

$LANG/cat?}

else

/usr/sbin/tmpwatch -f 240 /var/catman/{X11R6/cat?,cat?,local/cat?}

fi
 ---------------------------end--------------------------------


It deletes all files in the above folders that have not been accessed for

more than 10 days.  

You can add /home/username/tmp to it?  


www.Obnosis.com |  http://en.wiktionary.org/wiki/Citations:obnosis |  (503)754-4452
January PLUG HackFest = Kristy Westphal, AZ Department of Economic Security Forensics @ UAT 1/10/09 12-3PM


> Date: Sun, 4 Jan 2009 13:51:40 -0700
> From: joe at actionline.com
> To: plug-discuss at lists.plug.phoenix.az.us
> Subject: Can I safely delete all the "0" size files in /home/username/tmp ?
> 
> In my /home/username/tmp/orbit -username directory, I have hundreds of files
> of "0" (zero) file size dating back three years.  Is there any reason
> why all these
> files cannot be deleted?  And why aren't they automatically deleted at reboot
> if the are, in fact, just 'tmp' files?
> 
> srwxrwxr-x  1 joe joe   0 Dec  9 06:33 linc-985-0-5ade3bcfbbb33
> srwxrwxr-x  1 joe joe   0 Dec 15 07:05 linc-7a43-0-f80783d1f283
> srwxrwxr-x  1 joe joe   0 Dec 15 07:15 linc-7aae-0-5a1a5effe7972
> srwxrwxr-x  1 joe joe   0 Dec 15 07:15 linc-7ab0-0-7db99ee517913
> srwxrwxr-x  1 joe joe   0 Dec 27 10:25 linc-4650-0-3a4016ed619f1
> srwxrwxr-x  1 joe joe   0 Dec 27 10:25 linc-466e-0-2bd9b9541657b
> -rw-rw-r--  1 joe joe 661 Jan  3 01:19 bonobo-activation-server-ior
> srwxr-xr-x  1 joe joe   0 Jan  4 13:30 linc-6c0d-0-5efb73cbc5321
> srwxrwxr-x  1 joe joe   0 Jan  4 13:30 linc-6bfe-0-744fa82528c43
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

_________________________________________________________________
It’s the same Hotmail®. If by “same” you mean up to 70% faster.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad1_122008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20090105/c0fd099c/attachment.htm 


More information about the PLUG-discuss mailing list