1mknod(1M)               System Administration Commands               mknod(1M)
2
3
4

NAME

6       mknod - make a special file
7

SYNOPSIS

9       mknod name b major minor
10
11
12       mknod name c major minor
13
14
15       mknod name p
16
17

DESCRIPTION

19       mknod makes a directory entry for a special file.
20

OPTIONS

22       The following options are supported:
23
24       b    Create a block-type special file.
25
26
27       c    Create a character-type special file.
28
29
30       p    Create a FIFO (named pipe).
31
32

OPERANDS

34       The following operands are supported:
35
36       major    The major device number.
37
38
39       minor    The  minor  device number; can be either decimal or octal. The
40                assignment of major device numbers is specific to each system.
41                You must be the super-user to use this form of the command.
42
43
44       name     A special file to be created.
45
46

USAGE

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

ATTRIBUTES

52       See attributes(5) for descriptions of the following attributes:
53
54
55
56
57       ┌─────────────────────────────┬─────────────────────────────┐
58       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
59       ├─────────────────────────────┼─────────────────────────────┤
60       │Availability                 │SUNWcsu                      │
61       └─────────────────────────────┴─────────────────────────────┘
62

SEE ALSO

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

NOTES

67       If mknod(2) is used to create a device, the major and minor device num‐
68       bers are always interpreted by the kernel running on that machine.
69
70
71       With  the  advent  of physical device naming, it would be preferable to
72       create a symbolic link to the physical  name  of  the  device  (in  the
73       /devices subtree) rather than using mknod.
74
75
76
77SunOS 5.11                        16 Sep 1996                        mknod(1M)
Impressum