|This article does not cite any references or sources. (December 2009)|
A virtual device in Unix is a file such as
/dev/urandom, that is treated as a device, as far as user level software is concerned, but is generated by the kernel without reference to hardware.
For instance when
/dev/null is written to, the kernel tells the program it wrote everything to it (without actually writing it anywhere), and when read from, the reading program is told that it has reached the end of the file. It is a device file (it can be made with mknod for instance), but does not reference any hardware.
|This Unix-related article is a stub. You can help Wikipedia by expanding it.|