sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

mknod.1 (676B)


      1 .Dd 2015-02-02
      2 .Dt MKNOD 1
      3 .Os sbase
      4 .Sh NAME
      5 .Nm mknod
      6 .Nd create a special device file
      7 .Sh SYNOPSIS
      8 .Nm
      9 .Op Fl m Ar mode
     10 .Ar name
     11 .Cm b Ns | Ns Cm c Ns | Ns Cm u
     12 .Ar major
     13 .Ar minor
     14 .Nm
     15 .Op Fl m Ar mode
     16 .Ar name
     17 .Cm p
     18 .Sh DESCRIPTION
     19 .Nm
     20 creates a special file named
     21 .Ar name .
     22 .Pp
     23 The following special file types are supported:
     24 .Bl -tag -width Ds
     25 .It Cm b
     26 A block device.
     27 .It Cm c | u
     28 A character device.
     29 .It Cm p
     30 A named pipe.
     31 .El
     32 .Pp
     33 Block and character devices are created with major number
     34 .Ar major ,
     35 and minor number
     36 .Ar minor .
     37 .Sh OPTIONS
     38 .Bl -tag -width Ds
     39 .It Fl m
     40 Set the mode of the new file based on the octal value of
     41 .Ar mode .
     42 .El
     43 .Sh SEE ALSO
     44 .Xr mknod 2