📄 mkproto.8
字号:
.\" SCCSID: @(#)mkproto.8 8.2 12/4/90.TH mkproto 8 "" "" Unsupported.SH Namemkproto \- construct a prototype file system.SH Syntax.B /etc/mkprotospecial proto.SH Description.NXR "mkproto command".NXA "newfs command" "mkproto command".NXR "file system" "constructing prototype"The.PN mkprotocommand is used to bootstrap a new file system.First a new file system is created using .MS newfs 8 .The.PN mkproto commandis then used to copy files from the old file system into the newfile system according to the directions found in the prototype file.I proto.The prototype filecontains tokens separated by spaces ornew lines..NXR "mkproto command" "prototype file and"The first tokens comprise the specificationfor the root directory.File specifications consist of tokensgiving the mode,the user-id,the group id,and the initial contents of the file.The syntax of the contents fielddepends on the mode..PPThe mode token for a file is a 6 character string.The first characterspecifies the type of the file.(The characters.B \-bcdspecify regular, block special,character special and directory filesrespectively.)The second character of the typeis either.B uor.B \-to specify set-user-id mode or not.The third is.B gor.B \-for the set-group-id mode.The rest of the modeis a three digit octal number giving theowner, group, and other read, write, executepermissions. See .MS chmod 1 ..PPTwo decimal numbertokens come after the mode; they specify theuser and group ID's of the owner of the file..PPIf the file is a regular file,the next token is a pathnamewhence the contents and size are copied..PPIf the file is a block or character special file,two decimal number tokensfollow which give the major and minor device numbers..PPIf the file is a directory,.PN mkprotomakes the entries.BR . ""and.B ..and thenreads a list of names and(recursively)file specifications for the entriesin the directory.The scan is terminated with thetoken.BR $ ..PPA sample prototype specification follows:.PP.EXd\-\-777 3 1usr d\-\-777 3 1 sh \-\-\-755 3 1 /bin/sh ken d\-\-755 6 1 $ b0 b\-\-644 3 1 0 0 c0 c\-\-644 3 1 0 0 $$.EE.dt.SH Restrictions.NXR "mkproto command" "restricted"You can only run .PN mkproto on virgin file systems.It should be possible to copy files into existent file systems..SH See Alsodir(5), fs(5), fsck(8), newfs(8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -