Scroll to navigation

CRFILE(1) CRFILE(1)

NAME

crfile - Create arbitrary sized files

SYNOPSIS

crfile -f filename -s size [-w[len] | -n]

DESCRIPTION

crfile is used to create a file of the specified size, filled with random ASCII characters. The -n switch allows the creation of files padded with null characters (ie. containing large 'holes') that have an apparent length of the specified size, but contain only one random character.

OPTIONS

specifies the file to be created. If the file exists, an error is generated.
size is the size of the file, in bytes
wrap each line of output at len characters. If len omitted, wrap at 80 characters.
Pad the file with null characters instead of random ASCII text. This allows for the rapid creation of large files (useful for verifying that programs can deal with files > 2GB in size, for example).

AUTHOR

Julian T. J. Midgley <jtjm@xenoclast.org>

March 20, 2001