[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
howtos:general_admin:free_your_space [2012/09/25 04:15 (UTC)] – moved from general howtos namespace mfillpothowtos:general_admin:free_your_space [2013/01/06 00:11 (UTC)] – added REVIEWED comment mfillpot
Line 1: Line 1:
 +<!-- Reviewed 2012-12-28 hazel -->
 <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). -->
 ====== Free your space ====== ====== Free your space ======
Line 5: Line 6:
  
 ==== /tmp directory ==== ==== /tmp directory ====
-The first reason for that can be /tmp which doesn’t get cleaned automatically. I create my temporary files in my home directory so I can safely delete the contents of /tmp every time I shut down the system. You don’t have to do it manually, though. \\+The first reason can be /tmp directory which doesn’t get cleaned automatically. I create my own temporary files in my home directory so I can safely delete the contents of /tmp every time I shut down the system. You don’t have to do it manually, though. \\
 The following command should be placed in ''/etc/rc.d/rc.local_shutdown''. The following command should be placed in ''/etc/rc.d/rc.local_shutdown''.
  
 <code>/usr/bin/find /tmp -mindepth 1 -maxdepth 1 -print0 | xargs -0r /bin/rm -rf</code> <code>/usr/bin/find /tmp -mindepth 1 -maxdepth 1 -print0 | xargs -0r /bin/rm -rf</code>
  
-As this file doesn’t exist on the default installation of Slackware, you need to create it first and make it executable:+This will delete ALL the files in the /tmp directory every time the system shuts 
 +down, so be careful what you put there!  
 + 
 +The ''rc.local_shutdown'' file can also be useful in other ways. If you need to perform any other tasks on shutdown, you can put them here. As this file doesn’t exist on the default installation of Slackware, you need to create it first and make it executable:
  
 <code># touch /etc/rc.d/rc.local_shutdown <code># touch /etc/rc.d/rc.local_shutdown
 # chmod +x /etc/rc.d/rc.local_shutdown</code> # chmod +x /etc/rc.d/rc.local_shutdown</code>
  
-This will delete ALL the files in the /tmp directory every time the system shuts down, so be careful what you put there! Generally, the ''rc.local_shutdown'' file might also be useful in other ways. If you need to perform any other tasks on shutdown, you can put them in the file. <note>Remember to test your commands well before you include them in the shutdown file.</note>+<note>Remember to test your commands well before you include them in the shutdown file.</note>
  
 Alternatively, if you have enough RAM, you may mount the ''/tmp'' in tmpfs by adding the following to ''/etc/fstab''. Alternatively, if you have enough RAM, you may mount the ''/tmp'' in tmpfs by adding the following to ''/etc/fstab''.
 howtos:general_admin:free_your_space ()