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

Re: how to i return a filesize to "0"....?



Easier solution still:

        > file.name

Phil.


>A better solution is
>
>cat /dev/null > file.name
>
>or whatever the file name is. You have to have write permission, or course.
>This preserves ownership and permissions, and resets the file size to zero.
>
>
>-----Original Message-----
>From: Chris Watt [mailto:grimm mad scientist com]
>Sent: Monday, 2 August 1999 3:20
>To: redhat-install-list redhat com
>Subject: Re: how to i return a filesize to "0"....?
>
>
>At 11:57 AM 8/2/99 +1000, you wrote:
>>how do i return a filesize to 0? That is, i want to cleanup my HUGE log
>>files from taking up room, but rather than getting rid fo the files i
>>want to be able to clear all their contents out and returm their size
>>value to 0 - is this possible and if so how do i do it..?
>
>Easiest way is to delete and recreate the file.
>
>
>--
>  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com http://archive.redhat.com
>         To unsubscribe: mail redhat-install-list-request redhat com with
>                       "unsubscribe" as the Subject.
>



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