mknod 命令
用於創建一個設備文件,即特殊文件。
選項:
-m:創建後設備文件的訪問權限;
b創建塊(緩衝)特殊文件
c,u創建字符(未緩衝)特殊文件
p 創建FIFO
實例:
[root@itxuezhe ~]# mknod /dev/hello c 111 13
[root@itxuezhe ~]# ls -l /dev/hello
crw-r--r-- 1 root root 111, 13 Feb 28 19:41 /dev/hello
[root@itxuezhe ~]# mknod /dev/hello1 b 111 13
[root@itxuezhe ~]# ls -l /dev/hello1
brw-r--r-- 1 root root 111, 13 Feb 28 19:42 /dev/hello1