'\" te .\" Copyright (c) 1989, 2011, Oracle and/or its affiliates. All rights reserved. .\" Copyright 1989 AT&T .TH mknod 1M "16 Sep 1996" "SunOS 5.11" "System Administration Commands" .SH NAME mknod \- make a special file .SH SYNOPSIS .LP .nf \fBmknod\fR \fIname\fR b \fImajor\fR \fIminor\fR .fi .LP .nf \fBmknod\fR \fIname\fR c \fImajor\fR \fIminor\fR .fi .LP .nf \fBmknod\fR \fIname\fR p .fi .SH DESCRIPTION .sp .LP \fBmknod\fR makes a directory entry for a special file. .SH OPTIONS .sp .LP The following options are supported: .sp .ne 2 .mk .na \fB\fBb\fR\fR .ad .RS 5n .rt Create a block-type special file. .RE .sp .ne 2 .mk .na \fB\fBc\fR\fR .ad .RS 5n .rt Create a character-type special file. .RE .sp .ne 2 .mk .na \fB\fBp\fR\fR .ad .RS 5n .rt Create a FIFO (named pipe). .RE .SH OPERANDS .sp .LP The following operands are supported: .sp .ne 2 .mk .na \fB\fImajor\fR\fR .ad .RS 9n .rt The \fImajor\fR device number. .RE .sp .ne 2 .mk .na \fB\fIminor\fR\fR .ad .RS 9n .rt The \fIminor\fR 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. .RE .sp .ne 2 .mk .na \fB\fIname\fR\fR .ad .RS 9n .rt A special file to be created. .RE .SH USAGE .sp .LP See \fBlargefile\fR(5) for the description of the behavior of \fBmknod\fR when encountering files greater than or equal to 2 Gbyte ( 2^31 bytes). .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Availabilitysystem/core-os .TE .SH SEE ALSO .sp .LP \fBftp\fR(1), \fBmknod\fR(2), \fBsymlink\fR(2), \fBattributes\fR(5), \fBlargefile\fR(5) .SH NOTES .sp .LP If \fBmknod\fR(2) is used to create a device, the major and minor device numbers are always interpreted by the kernel running on that machine. .sp .LP 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 \fB/devices\fR subtree) rather than using \fBmknod\fR.