[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Which directory contents I can remove??



Mikkel L. Ellertson wrote:
> Patrick O'Callaghan wrote:
>   
>> On Sat, 2009-06-06 at 17:32 -0700, gmspro wrote:
>>     
>>> In windows xp I can delete the contents of temp directory.
>>> In linux which directory contents I can remove?
>>>       
>> By convention, temporary files are in /tmp (sometimes /var/tmp). You can
>> delete them as you would any other file, using "rm ...".
>>
>>     
>>> Is there any command to do that easily?
>>> Or is there any graphical software that I can use for this purpose?
>>>       
>> Any of the graphical file managers.
>>
>> Be sure you understand the consequences of deleting temporary files
>> before doing so, as there's no easy way to undelete files in Linux.
>>
>> poc
>>
>>     
> You will probably want to be careful about deleting the various
> sockets in /tmp. This can lead to strange problems until you log
> out, or in some cases reboot. (Strange as in unpredictable or
> intermittent.)
>
>   
Which is why I never advocate that the novice user go about doing "clean
up" of /tmp and /var/tmp on running systems.  If they are really
concerned about file space being taken up by these....then I follow what
was (and maybe still is) the Solaris approach and create a startup or
shutdown job that clears those directories early or late in the sequence.

-- 
Hermes: "Up yours, Zoidberg. Up wherever your species traditionally
crams things." Mei-Mei Greshko greshko com
http://tw.youtube.com/watch?v=cCSz_koUhSg

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]