xref: /minix3/minix/usr.sbin/mkproto/mkproto.1 (revision b80da2a01d0bb632707b7b4e974aa32eaebbcc6f)
MKPROTO 1
NAME
mkproto - create a MINIX 3 prototype file
SYNOPSIS
mkproto [-b n] [-d str] [-g n] [-i n] [-p nnn] [-s] [-t root] [-u n] source_directory [prototype_file]

\\\$1\ \\$2 ..

20 \\\$1\ # \\$2 ..

OPTIONS

5 -b # Number of blocks in the prototype is n

5 -d # Indent the prototype file using str instead of tab

5 -g # Use n as the gid for all files and directories

5 -i # Number of i-nodes in the prototype is n

5 -p # Use nnn (3 octal digits) as the protection mode

5 -s # Use the same uid, gid and mode as the source files have

5 -t # Use the string root as the path prefix for every file

5 -u # Use n as the uid for all files and directories

EXAMPLES

20 mkproto -b360 # Make a 360K prototype of this directory

20 mkproto -u2 -g1 -p644 # Give all files uid 2, gid 1 and mode 644

DESCRIPTION

Mkproto creates an mkfs prototype file for the specified source-directory. The prototype file is either written to stdout or, if specified, the proto-file.

"SEE ALSO"
mkfs (1).