[SOLVED] Problem with full /tmp
Slackware This Forum is for the discussion of Slackware Linux.
10-16-2013, 04:34 AM
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: MLED, MLES, CentOS
Problem with full /tmp
I have a strange problem with the /tmp directory on my Slack64 workstation.
[root@alphamule:tmp] # pwd
[root@alphamule:tmp] # rm -rf *
-su: /usr/bin/rm: Liste d'arguments trop longue
The last error message means too many arguments.
Something seems to have spammed my /tmp directory. According to du -sh /tmp, there's about 900 MB of files in there. No idea where that's coming from.
Any idea how I can clean up this mess?
10-16-2013, 12:00 PM
Registered: Jan 2011
Location: Youngstown, Ohio
I personally use
*/15 * * * * /usr/sbin/tmpwatch --atime 1 /tmp --exclude=/tmp/SBo/ > /dev/null 2>&1
to keep things nice and neat.
10-16-2013, 12:23 PM
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
In addition to /dev/shm, you can also add a line to fstab to make your /tmp tmpfs and your /tmp will be cleared on reboot.
I'm sure you know that already, just sayin'
tmpfs /tmp tmpfs defaults 0 0
10-16-2013, 01:43 PM
Registered: Sep 2008
Itīs an interesting matter. Can I suggest another possibilities?
1)Using /rc.d/rc.local_shutdown ( /usr/bin/find /tmp -mindepth 1 -maxdepth 1 -print0 | xargs -0r /bin/rm -rf )
2)There are a pair of excellent Mr. Woodsman scripts. If you will use kde4 you should some adpatations, but it was used a lot in kde3.
And tmpfs has memory quantity questions, insnīt ?
Last edited by vivanguarda; 10-16-2013 at
1 members found this post helpful.
may not post new threads
may not post replies
may not post attachments
may not edit your posts
HTML code is
All times are GMT -5. The time now is
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.