LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Slackware-13.1-Hacks-Emptying tmp

Posted 01-01-2011 at 10:09 PM by arniekat

# This will empty the /tmp folder when you shutdown or
# reboot the machine
# Add this line to /etc/rc.d/rc.6

echo "Emptying /tmp"
rm /tmp/* -rf &1>2 > /dev/null

The /dev/null part gets rid of any output/error codes.

I placed it between the following sections in /etc/rc.d/rc.6

# Save the system time to the hardware clock using hwclock --systohc.
if [ -x /sbin/hwclock ]; then
# Check...
LQ Newbie
Posted in Uncategorized
Views 1292 Comments 1 arniekat is offline

  



All times are GMT -5. The time now is 09:59 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration