GNU coreutils 8.26
manpages-zh
Chinese manual pages
man-pages-zh-CN
Chinese Man Pages from Chinese Man Pages Project
man-pages-zh_cn
Simplified Chinese Linux man pages
coreutils
The basic file, shell and text manipulation utilities of the GNU operating system
coreutils-common
coreutils common optional components
coreutils-doc
Documentation for the GNU Core Utilities
名称
mknod - 创建块或者字符特殊文件
概述
mknod [\,选项\/]... \,名称 类型 \/[\,主设备号 从设备号\/]
描述
使用指定文件名称和给定类型创建特殊文件。
必选参数对长短选项同时适用。
-m, --mode=\,模式\/ | |
将文件权限位设置为给定的模式(类似 chmod),而不是类似 a=rw 这样 | |
-Z | 将 SELinux 安全上下文设置为默认类型 |
--context[=\,CTX\/] | |
类似 -Z,或者如果指定了上下文,则将 SELinux 或者 SMACK 安全上下文设置为指定类型 | |
--help | 显示此帮助信息并退出 |
--version | |
显示版本信息并退出 | |
当类型为 b、c 或者 u 时,必须同时指定主设备号和从设备号,当类型为 p 时它们必须同时被省略。如果主设备号和从设备号以 0x 或者 0X 起始,它将被解释为十六进制数据;否则,如果它以 0 起始,则看作八进制;否则看作十进制。所指定类型可以为: | |
b | 创建一个块(缓冲)特殊文件 |
c, u | 创建一个字符(无缓冲)特殊文件 |
p | 创建一个 FIFO |
作者
由 David MacKenzie 编写。
报告错误
GNU coreutils 的在线帮助: <http://www.gnu.org/software/coreutils/>
请向 <http://translationproject.org/team/zh_CN.html> 报告 mknod 的翻译错误。
请向 <http://translationproject.org/team/zh_CN.html> 报告 mknod 的翻译错误。
版权
Copyright © 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
参见
mknod(2)
完整文档请见:<http://www.gnu.org/software/coreutils/mknod>
或者在本地使用: info \(aq(coreutils) mknod invocation\(aq
或者在本地使用: info \(aq(coreutils) mknod invocation\(aq
跋
本页面中文版由中文 man 手册页计划提供。
中文 man 手册页计划:https://github.com/man-pages-zh/manpages-zh
中文 man 手册页计划:https://github.com/man-pages-zh/manpages-zh