[prev in list] [next in list] [prev in thread] [next in thread]
List: debian-user
Subject: Re: Memory leakage
From: D-Man <dsh8290 () rit ! edu>
Date: 2001-01-04 2:36:38
[Download RAW message or body]
On Wed, Jan 03, 2001 at 06:05:13PM -0800, kmself@ix.netcom.com wrote:
<snip>
>
> $ fuser -v bigfile # show process(es) using bigfile
> $ fuser -vk bigfile # kill process(es) using bigfile
> $ fuser -v bigfile # verify the kill worked
> $ cat /dev/null > bigfile # "empty" the file
> $ rm bigfile
>
> In general, you want to *empty* a file (cat /dev/null > file) before you
> delete it, and you don't want to delete an open file.
>
Why would you cat /dev/null into the file before removing it?
-D
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic