mknod to create /dev/null equivalent not working
Adam Vande More
amvandemore at gmail.com
Mon Aug 28 22:49:16 UTC 2017
On Mon, Aug 28, 2017 at 5:44 PM, James E. Pace <james at pacehouse.com> wrote:
> After "mknod /foo/dev/null c 0 0x1b":
> $ \ls -l /dev/null /foo/dev/null
> crw-rw-rw- 1 root wheel 0x1b Aug 28 15:34 /foo/dev/null
> crw-rw-rw- 1 root wheel 0x1b Aug 28 15:36 /dev/null
> $ cat /etc/hosts > /dev/null
> $ cat /etc/hosts > /foo/dev/null
> /foo/dev/null: Operation not supported.
> What am I doing wrong? Why isn't the device I created acting like
> Tried on FreeBSD 11.1.
You must have missed the big header in the mknod man page. I think you
may want devfs(5) instead.
More information about the freebsd-questions