In UNIX, every output device is referred to as a file. For writing to the console (the monitor), the file to write to is /dev/console. To write to tape, the file is /dev/nrst0 (on a Sun SPARCstation 2). Even the keyboard writes to a file (/dev/kbd) which is read by the operating system.