file size different from ls to du

Harti Brandt brandt at
Tue Jul 29 09:08:36 PDT 2003

On Tue, 29 Jul 2003, Joshua Oreman wrote:

JO>Usually programs will manage their own sparse files; it's something hard
JO>to do at the shell.

When I need a file for TCP performance tests I usually do

dd if=/dev/zero of=file bs=1k count=1 seek=99999

harti brandt,
brandt at, harti at

More information about the freebsd-hackers mailing list