Which directory contents I can remove??

Ed Greshko Ed.Greshko at greshko.com
Sun Jun 7 02:12:12 UTC 2009


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 at greshko.com
http://tw.youtube.com/watch?v=cCSz_koUhSg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090607/7ecb5483/attachment-0001.sig>


More information about the fedora-list mailing list