⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mkfs.1m

📁 unix v7是最后一个广泛发布的研究型UNIX版本
💻 1M
字号:
.TH MKFS 1M .SH NAMEmkfs \- construct a file system.SH SYNOPSIS.B /etc/mkfsspecialproto.SH DESCRIPTION.I Mkfsconstructs a file systemby writing on the special file.I specialaccording to the directionsfound inthe prototype file.I proto.The prototype filecontains tokens separated by spaces ornew lines.The first token is the name of a fileto be copied onto block zero asthe bootstrap program,see.IR bproc (8).The second token is a number specifying thesize of the created file system.Typically it will be the number of blocks on the device,perhaps diminishedby space for swapping.The next token is the number of i-nodesin the i-list.The next set of tokens comprise the specificationfor the root file.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.IR 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,.I mkfsmakes 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 $ ..PPIf the prototype file cannot be opened andits name consists of a string of digits,.I mkfsbuilds a file system with a singleempty directory on it.The size of the file system is the valueof.I protointerpreted as a decimal number.The number of i-nodes is calculatedas a function of the filsystem size.The boot program is left uninitialized..PPA sample prototype specification follows:.PP.nf.in +5/usr/mdec/uboot4872 55d\-\-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	$$.in -5.fi.SH "SEE ALSO"filsys(5),dir(5),bproc(8).SH BUGSThere should be some way to specify links.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -