mknod
Create block or character special device files for hardware access. Supports dry-run preview and returns JSON with node path and type.
Instructions
Create device nodes (block or character special files) with dry-run support. Destructive: creates special device files. May require elevated privileges. Use --dry_run to preview. Returns JSON with the created node path and type. Use to create device files for hardware access. Not for FIFO pipes — use 'mkfifo' for named pipes. Not for regular files — use 'touch'. See also 'mkfifo'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Report operations without changing files. | |
| mode | No | Octal mode such as 600 or 666. | 666 |
| node_type | No | Node type. | regular |
| parents | No | Create missing parent directories. | |
| paths | Yes | Node paths to create. |