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

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



The easiest way I know is this:

cat /dev/null > YourHUGELogFile

This command does not change the ownership and permissions.

Slawek

On Mon, 2 Aug 1999, Matt Lemsing 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..?
> 
> Matt
> 
> 
> -- 
>   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]