Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (1) — Plan9 3rd Edition (Vita Nuova)

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

kfs(3)

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

kfs(3)

Plan 9  —  June 29, 2000

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026