View previous topic :: View next topic |
Author |
Message |
dswissmiss Guru
Joined: 23 May 2004 Posts: 498 Location: New York
|
Posted: Sat Jul 31, 2004 7:09 am Post subject: emptying /tmp |
|
|
Hi guys,
I have /root on a 5 gig partition with a seperate /home, but now I'm getting all kids of errors about /tmp being full. How do I empty it, and I read something about having a cron-damon doing this for you, can anyone explain it to me?
Thanx
Dswissmiss |
|
Back to top |
|
|
orionrobots Apprentice
Joined: 07 Oct 2003 Posts: 289 Location: London, Uk
|
Posted: Sat Jul 31, 2004 8:33 am Post subject: |
|
|
In many cases - cleaning out tmp can depend on what you have running at the time. As long as any work from a desktop app is saved, /tmp is okay to clean, as deamons and system process will use /var.
Even if someone has something like a KDE session open, removing temp will more slow them down that destroy what is going on.
cron can be set up to clean out tmp with someting like this in cron.daily or cron.weekly:
Code: |
#!/bin/sh
cd /tmp
rm -rf
|
I would name it cleantmp or something. _________________ Danny Staple, curator of http://orionrobots.co.uk
Adopt an unanswered post initiative https://forums.gentoo.org/search.php?search_id=unanswered |
|
Back to top |
|
|
dswissmiss Guru
Joined: 23 May 2004 Posts: 498 Location: New York
|
Posted: Sat Jul 31, 2004 4:47 pm Post subject: |
|
|
Oops, I deleted /tmp by mistake.
I made another directory called /tmp, but now some programs can't write to it, like gnome, and only root can start firefox for example.
How do I get it back?
Thanx |
|
Back to top |
|
|
mrsteven Veteran
Joined: 04 Jul 2003 Posts: 1938
|
Posted: Sat Jul 31, 2004 5:01 pm Post subject: |
|
|
Code: |
chmod a+rwx /tmp
chmod o+t /tmp
|
EDIT: Sorry, forgot /tmp... _________________ Unix philosophy: "Do one thing and do it well."
systemd: "Do everything and do it wrong."
Last edited by mrsteven on Sat Jul 31, 2004 6:56 pm; edited 1 time in total |
|
Back to top |
|
|
dswissmiss Guru
Joined: 23 May 2004 Posts: 498 Location: New York
|
Posted: Sat Jul 31, 2004 5:20 pm Post subject: |
|
|
Edit: It worked...thanx! |
|
Back to top |
|
|
polle Veteran
Joined: 28 Feb 2003 Posts: 1498 Location: Belgium
|
|
Back to top |
|
|
|