ZEROS(1)
NAME
zeros − write sequence of zeroed bytes
SYNOPSIS
zeros [ blocksize... ] [ numblocks ]
DESCRIPTION
Zeros writes a sequence of zeroed bytes to standard output. The arguments specify the block size in bytes and the number of blocks to output. Typically zeros has a specialised use: ensuring a file has the desired number of blocks in it to hold a file system image, before reaming it.
EXAMPLE
To create and initialize a file system containing 2880 1024 byte blocks
zeros 1024 2880 > kfs
echo ’ream fs kfs’ > ’#Kcons/kfsctl’
echo halt > ’#Kcons/kfscons’
SOURCE
/appl/cmd/zeros.b
SEE ALSO
Plan 9 — June 29, 2000