can /tmp/SBo content safely be deleted
Hi all,
After installing numerous stuff on my Slackware system, I notice I am running out of hard-drive space. I see that /tmp/SBo has about 1G of staff that I recently installed --- may I safely delete this staff? Cheers, IDD |
Sure you can. Maybe you'd like to save the .tgz packages for the future, but the /tmp/SBo folder you can remove - it's where the sources are unpacked and programs compiled and installed with DESTDIR. Take a look at some SlackBuild script and you'll see what are those.
|
Yes you may! You can delete everything in /tmp if you really want to. Whatever the operating system actually requires the kernel will make again.
|
Thanks for the guide --- now I have got that 1G space back.
|
Opinions vary about the best way to clean /tmp and none of them are guaranteed to cause no breakage. I remove everything in /tmp as soon as the file system containing it is mounted; this by modifying the boot script which mounts it; works for me; YMMV.
|
Hi catkin,
you say, "by modifying the boot script which mounts" /tmp. Which is the boot script you are referring to (is it /boot/config ?), and how did you modify it? |
Quote:
have temporary files in /tmp for users CURRENT sessions. Deleting those can make "bad things" happen. It's safe to delete OLD stuff from /tmp, things that aren't currently being accessed. Cheers, Tink |
On Slackware it's /etc/rc.d/rc.S. When /tmp is on the / file system, the relevant part is just after comment "# Remount the root file system in read-write mode" which is mostly an if-fi to deal with it failing. I use this line after the closing fi: ( cd /tmp && rm -rf -- * .* 2>/dev/null )
|
I delete everything in /tmp when the system shuts down by adding the following to /etc/rc.d/rc.local_shutdown:
Code:
/usr/bin/find /tmp -mindepth 1 -maxdepth 1 -print0 | xargs -0r /bin/rm -rf |
Quote:
|
Quote:
|
Quote:
|
After adding
Code:
cd /tmp && rm -rf -- * .* 2>/dev/null Code:
# Remount the root file system in read-write mode |
Quote:
|
Quote:
Code:
( cd /tmp && rm -rf -- * .* 2>/dev/null ) And it should go after the fi after Code:
# Remount the root file system in read-write mode |
All times are GMT -5. The time now is 01:14 AM. |