viewing major and minor device numbers

David Newman dnewman at networktest.com
Fri Oct 25 19:26:39 UTC 2013


FreeBSD 9.2-RELEASE, amd64

To create some character special devices in a chroot environment, I've
previously used mknod, but now can't find the major and minor device
numbers.

The ls manpage says these numbers should be displayed in the size field.
However, I'm seeing only one hex value, e.g.:

$ ls -l /dev/null
crw-rw-rw-  1 root  wheel  0x13 Oct 25 12:22 /dev/null

So I don't know what major and minor values to feed mknod. Or is there
another way to do this?

thanks

dn


More information about the freebsd-questions mailing list