logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/

mknod.1 (1225B)


  1. .\" utils-std: Collection of commonly available Unix tools
  2. .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. .\" SPDX-License-Identifier: MPL-2.0
  4. .Dd 2024-04-21
  5. .Dt MKNOD 1
  6. .Os
  7. .Sh NAME
  8. .Nm mknod
  9. .Nd Create FIFO, block-special, character-special files
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Op Fl m Ar mode
  13. .Ar path
  14. .Ar b Ns | Ns Ar c Ns | Ns Ar u
  15. .Ar major
  16. .Ar minor
  17. .Nm
  18. .Op Fl m Ar mode
  19. .Ar path
  20. .Ar p
  21. .Sh DESCRIPTION
  22. .Nm
  23. creates special file at
  24. .Ar path
  25. of the given type:
  26. .Bl -tag -width ___
  27. .It Ar b
  28. Create block special file
  29. .It Ar c Ns | Ns Ar u
  30. Create character special file
  31. .It Ar p
  32. Create FIFO
  33. .El
  34. .Pp
  35. Both
  36. .Ar major
  37. and
  38. .Ar minor
  39. must be specified when type is
  40. .Ar b ,
  41. .Ar c ,
  42. or
  43. .Ar u ,
  44. and they must be omitted when type is
  45. .Ar p .
  46. The numbers given in
  47. .Ar major
  48. and
  49. .Ar minor
  50. are interpreted as hexadecimal with a leading 0x or 0X,
  51. octal with a leading 0,
  52. decimal otherwise.
  53. .Sh OPTIONS
  54. .Bl -tag -width _m_mode
  55. .It Fl m Ar mode
  56. Set permission of new special file,
  57. relative to 0666/rw-rw-rw using the same format as
  58. .Xr chmod 1 .
  59. .El
  60. .Sh EXIT STATUS
  61. .Ex -std
  62. .Sh SEE ALSO
  63. .Xr mkfifo 1
  64. .Sh HISTORY
  65. A
  66. .Nm
  67. utility appeared in
  68. .At v4 .
  69. .Sh AUTHORS
  70. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me