linux mknod command

原文地址:http://blog.csdn.net/fanbird2008/article/details/6400580


mknod -m 600 /dev/console c 5 1
mknod -m 640 /dev/mem c 1 1
mknod -m 666 /dev/null c 1 3
mknod -m 666 /dev/ptmx c 5 2
mknod -m 660 /dev/ram0 b 1 0
mknod -m 660 /dev/ram1 b 1 1
mknod -m 660 /dev/ram2 b 1 2
mknod -m 660 /dev/ram3 b 1 3
mknod -m 666 /dev/zero c 1 5
mknod -m 666 /dev/random c 1 8
mknod -m 444 /dev/urandom c 1 9
mknod -m 666 /dev/tty c 5 0
mknod -m 660 /dev/tty0 c 4 0
mknod -m 620 /dev/tty1 c 4 1
mknod -m 600 /dev/tty2 c 4 2
mknod -m 600 /dev/tty3 c 4 3
mknod -m 600 /dev/tty4 c 4 4
mknod -m 600 /dev/tty5 c 4 5
mknod -m 600 /dev/tty6 c 4 6
mknod -m 660 /dev/tty7 c 4 7
mknod -m 660 /dev/tty8 c 4 8
mknod -m 660 /dev/tty9 c 4 9
mknod -m 660 /dev/ttyS0 c 4 64
mknod /dev/vcs c 7 0
mknod -m 620 /dev/pts/0 c 136 0
mknod -m 620 /dev/pts/1 c 136 1
mknod -m 620 /dev/pts/2 c 136 2
mknod -m 620 /dev/pts/3 c 136 3

 

mknod -m 660 /dev/hda  b 3 0
mknod -m 660 /dev/hda1 b 3 1
mknod -m 660 /dev/hda2 b 3 2
mknod -m 660 /dev/hda3 b 3 3
mknod -m 660 /dev/hda4 b 3 4

mknod -m 660 /dev/hdb  b 3 64
mknod -m 660 /dev/hdb1 b 3 65
mknod -m 660 /dev/hdb2 b 3 66
mknod -m 660 /dev/hdb3 b 3 67
mknod -m 660 /dev/hdb4 b 3 68

mknod -m 660 /dev/sda  b 8 0
mknod -m 660 /dev/sda1  b 8 1
mknod -m 660 /dev/sda2  b 8 2
mknod -m 660 /dev/sda3  b 8 3
mknod -m 660 /dev/sda4  b 8 4

 

 

mknod /dev/chardev c 250 0


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值