Subject: Re: Suggestion: inclusion of the truncate(1) utility into the tree
To: None <firstname.lastname@example.org>
From: John Hawkinson <jhawk@MIT.EDU>
Date: 07/23/2000 19:50:54
In message <Pine.NEB.email@example.com>, Greywol
>On Sat, 22 Jul 2000, Alexander Langer wrote:
># Thus spake John Hawkinson (jhawk@MIT.EDU):
># > | FreeBSD recently imported a truncate(1) utility into their
># > | src-tree, which is a command-line frontend to truncate(2).
># > Why is not ``dd'' sufficient?
>Because "dd" requires an intermediate copy to truncate the
>file while a truncate(1) utility would use truncate(2) to
>truncate the file in place -- more quickly, I might add.
dd if=/dev/null of=file-to-truncate seek=howevermuchtotruncate