mknod

 

NAME

mknod − make a special file

SYNOPSIS

mknod name b major minor

mknod name c major minor

mknod name p

DESCRIPTION

mknod makes a directory entry for a special file.

OPTIONS

The following options are supported:

 

b

 

Create a block-type special file.

 
 

c

 

Create a character-type special file.

 
 

p

 

Create a FIFO (named pipe).

 

OPERANDS

The following operands are supported:

 

major

 

The major device number.

 

minor

 

The minor device number; can be either decimal or octal. The assignment of major device numbers is specific to each system. You must be the super-user to use this form of the command.

 

name

 

A special file to be created.

USAGE

See largefile(5) for the description of the behavior of mknod when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes).

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

Image /raid/www/mp/htdocs/___img/man1/mknod1.png

SEE ALSO

ftp(1), in.ftpd(1M), mknod(2), symlink(2), attributes(5), largefile(5)

NOTES

If mknod(2) is used to create a device, the major and minor device numbers are always interpreted by the kernel running on that machine.

With the advent of physical device naming, it would be preferable to create a symbolic link to the physical name of the device (in the /devices subtree) rather than using mknod.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值