当前位置:网站首页>mknod命令:创建设备文件
mknod命令:创建设备文件
2022-07-20 05:20:00 【天糊土】
参考博客:mknod_liangkaiming的博客-CSDN博客
参考资料:man手册
可以通过man 1 mknod查看mknod命令的内容。
1、mknod 命令的作用是make block or character special files,即创建块设备或者字符设备文件。
2、mknod 命令的格式是:mknod [OPTION]... NAME TYPE [MAJOR MINOR]
(1)OPTION的可选值与含义
- -m, --mode=MODE set file permission bits to MODE, not a=rw - umask
- -Z, --context=CTX set the SELinux security context of NAME to CTX
- --help display this help and exit
- --version output version information and exit
(2)NAME表示创建的设备文件的名字。
(3)TYPE可选值及含义
- b,create a block (buffered) special file
- c、u,create a character (unbuffered) special file
- p,create a FIFO
(4)MAJOR MINO表示主设备号、次设备号。
Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and they must be omitted when TYPE is p. If MAJOR or MINOR begins with 0x or 0X, it is interpreted as hexadecimal; otherwise, if it begins with 0, as octal; otherwise, as decimal.
边栏推荐
- 55k稳了,推荐系统永远滴神!
- [wechat applet request encapsulation] [advanced version] process 401 request token expiration -- login again -- reissue the request that just expired
- STL vector的操作
- Apache Doris ODBC appearance PostgreSQL User Guide
- 算法面试问题
- Usage and configuration of Apache Doris ODBC MySQL appearance under Ubuntu
- How to realize the secondary drop-down of select in wechat applet
- Flink Doris Connector设计方案
- Deep learning 1-perceptron
- Calculate the number of days from today
猜你喜欢
随机推荐
Idea starts the same project multiple times
Flink Doris connector design
Developers share the second regression analysis of "Book Eating bar: deep learning and mindspire practice"
Flag signal
Qualcomm and MTK customized modification method for national WiFi channel
RPC:Thrift框架
What are the advantages of building websites with old domain names?
[resolved] org apache. catalina. Lifecycleexception: failed to start component [standardengine[catalina] StandardHost[localhost]
sklearn决策树(Decision Trees)模型
About Variables
多分类的风险评分数据实操,助您中小微业务稳人一步
【微信小程序】文本域输入带最大字数限制(1/100)
Understand and apply continuous deployment Argo CD
Deep learning 2-linear unit and gradient descent
An interesting example to illustrate the difference of emplace_ back() and push_ back()
使用GO语言通过Stream Load实现Doris数据导入
Silicon Valley classroom notes (Part 1)
对ReadFile堵塞进行异步处理
Solution to the blank display of user management in Zhimeng Dede background system
Apache Doris Grafana监控指标介绍