By default, I think that Windows plants its temporary files in c:\windows\temp. In Linux or in Ubuntu at least, the equivalent area is /tmp. However, not realising that /tmp when you shut down and start your PC could cause the silly blunder that I made today. I was doing a spot of reorganisation on my spare PC when I dumped some files in /tmp from a hard drive that I had added. I was reformatting the drive as ext3 following its NTFS former life. As part of this, I was editing fstab to automount the thing and a system restart ensued. I ended up losing whatever I put into /tmp, a very silly blunder. Luckily, I had the good sense not to put anything critical in there so nothing of consequence has been lost. Nevertheless, a lesson has been learnt: Windows allows its temporary area to pick up all kinds of clutter until you clear it while Linux clears the thing regularly. It’s amazing how Windows thinking can cause a howler when you have a lapse of concentration using a *NIX operating system, even for someone who uses the latter every day.
Topics Discussed
Adobe Blog Blogging Canon Command Line CSS Debian Fedora Firefox GNOME Google hard drive Hardware HTML Installation Internet Explorer JavaScript Linux Microsoft MySQL openSUSE Opera Operating System Perl Photoshop Photoshop Elements PHP SAS Software Ubuntu UNIX upgrade VirtualBox Virtualisation Virtual Machine Vista VMware Web Browsers Windows Windows XP WordPress WordPress.com WordPress plugins XHTML XP
Twitter Updates
- Delicious: Avoid Appearing Out of Touch in Interviews by Emphasizing the New - Interviews - Lifehacker http://ow.ly/16MqAh 10 hrs ago
- Delicious: Debugging and Testing in Internet Explorer Made Easy | samuli.hakoniemi.net http://ow.ly/16Mdgd 17 hrs ago
- Delicious: Time to secure software | Security, Data and Privacy | Browse by subject area | Opinion, News, Analysis ... http://ow.ly/16M5hj 22 hrs ago
- GR Shared Items: Google Maps Adds Bike-Friendly Directions and Trails [Google Maps] http://ow.ly/16LE5o 1 day ago
- GR Shared Items: Guide: 8 ways to speed up Internet Explorer 8 http://ow.ly/16LE5p 1 day ago
- More updates...
The peril of /tmp
Saturday, July 19th 2008
I’m not sure of the file to edit in the case of Ubuntu, which you’re using, but for Gentoo it is possible to specify whether or not /tmp/ is emptied automatically by assigning the environment variable WIPE_TMP in the file /etc/conf.d/bootmisc. I made WIPE_TMP=”yes” so that the /tmp/ directory is cleared on each boot, otherwise the contents of this directory can build up over time as with Windows.