summaryrefslogtreecommitdiff
path: root/minix/usr.sbin/mkproto/mkproto.1
blob: 237a5995ac9c3ff401b454990be99656db33ef4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.TH MKPROTO 1
.SH NAME
mkproto \- create a MINIX 3 prototype file
.SH SYNOPSIS
\fBmkproto \fR[\fB\-b \fIn\fR] [\fB\-d \fIstr\fR] [\fB\-g \fIn\fR] [\fB\-i \fIn\fR] [\fB\-p \fInnn\fR] [\fB\-s\fR] [\fB\-t \fIroot\fR] [\fB\-u \fIn\fR] \fIsource_directory\fR [\fIprototype_file\fR]\fR
.br
.de FL
.TP
\\fB\\$1\\fR
\\$2
..
.de EX
.TP 20
\\fB\\$1\\fR
# \\$2
..
.SH OPTIONS
.TP 5
.B \-b
# Number of blocks in the prototype is \fIn\fR
.TP 5
.B \-d
# Indent the prototype file using \fIstr\fR instead of tab
.TP 5
.B \-g
# Use \fIn\fR as the gid for all files and directories
.TP 5
.B \-i
# Number of i-nodes in the prototype is \fIn\fR
.TP 5
.B \-p
# Use \fInnn\fR (3 octal digits) as the protection mode
.TP 5
.B \-s
# Use the same uid, gid and mode as the source files have
.TP 5
.B \-t
# Use the string \fIroot\fR as the path prefix for every file
.TP 5
.B \-u
# Use \fIn\fR as the uid for all files and directories
.SH EXAMPLES
.TP 20
.B mkproto \-b360
# Make a 360K prototype of this directory
.TP 20
.B mkproto \-u2 \-g1 \-p644
# Give all files uid 2, gid 1 and mode 644
.SH DESCRIPTION
.PP
\fIMkproto\fR creates an \fImkfs\fR prototype file for the specified
source-directory. 
The prototype file is either written to \fIstdout\fR or, if specified, 
the proto-file.
.SH "SEE ALSO"
.BR mkfs (1).