I am using
/dev/xconsole to send system logs from
rsyslog. That works great, because I am don't have to store the logs on disk.
I would like to have another similar file , i.e
/dev/xconsole1 where I can send other kind of logs.
How can I create such special file?
When I go to
ls it does not show complete major/minor number:
prw-r----- 1 root adm 0 2014-Oct-11 13:12:02 xconsole
it only shows
0. In contrast, other special files have both.
brw-rw---T 1 root disk 8, 1 2014-Oct-08 03:42:35 sda1
I know how to create special files using
mknod, but to do that, I need the major/minor number.