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

Re: Can't empty trash



Bob Proulx <bob@proulx.com> wrote:
> I always recommend finding big files and truncating them first.  You
> can truncate a file using the shell by redirection nothing into it.

>  : > largelogfile.log

> Or you can use 'true' as the same thing since ':' is an alias for
> 'true'.  So shell programmers always tend to use : since that is the
> traditional value.  It isn't obvious to new people though.

If you're using a Bourne-type shell (sh, bash, etc.) you can even omit
the null command and whitespace, thereby saving an extra character or
two of typing ;-)

    >largelogfile.log

Chris


Reply to: