Mailinglist Archive: opensuse (2141 mails)
| < Previous | Next > |
[SuSE Linux] Deleting kde trash in /tmp
- From: paspartu@xxxxxxx (Maurizio Firmani)
- Date: Wed, 17 Mar 1999 19:40:34 +0100
- Message-id: <99031720003900.01190@kamikazen>
Ciao
I found out that the command "find" is very powerful (have a look at man find).
It can be extremely useful to remove all the kde sockets on the /tmp directory.
Yes, they don't occupy phisical space in the hard disk, but they do occupy
phisical space on term whenever you type ls.
Just typing:
find /tmp -ctime +1 -type s -exec rm -f \{\} \;
which means "Starting from /tmp find all the stuff which satisfies the
following condition":
-they are created more than 1 day ago (-ctime +1)
-they are socket (-type s)
and remove them (-exec rm -f \{\} \;).
inside the command given by exec the "{}" is a synonimous of the file which is
being elaborated.
The question, now, is:
Where do I put this command to be executed at boot time? Maybe, in boot.local?
Are there better places?
Suggestions are, as always, welcome.
Ciao,
Maurizio
P.S.
There is a guy on this list which likes to end up his mail with the statement
"have a good one". What does it mean?
M.
--
To get out of this list, please send email to majordomo@xxxxxxxx with
this text in its body: unsubscribe suse-linux-e
Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the
archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
| < Previous | Next > |