/dev/null
is one of pseudo-devices from UNIX-like OS.
Quotes from Wikipedia:
In Unix-like operating systems, /dev/null
or the null device is a special file that discards all data written to it (but reports that the write operation succeeded) and provides no data to any process that reads from it (yielding EOF immediately). In programmer jargon, especially Unix jargon, it may also be called the bit bucket or black hole.
Actually, there are other kinds of pseudo-devices. For example,
/dev/null
Accepts and discards all input; produces no output.
/dev/zero
Accepts and discards all input; produces a continuous stream of NULL (zero value) bytes.
/dev/full
Produces a continuous stream of NULL (zero value) bytes when read, and returns a "disk full" message when written to.
/dev/random
and /dev/urandom
Produces a variable-length stream of pseudo-random or truly random numbers.
Other name convention for Linux based OS:
fb
: frame buffer
fd
: (platform) floppy disks, though this same abbreviation is also commonly used to refer to file descriptor
hd
: (“classic”) IDE driver (previously used for ATA hard disk drive, ATAPI optical disc drives, etc.)
hda
: the master device on the first ATA channel (usually identified by major number 3 and minor number 0)
hdb
: the slave device on the first ATA channel
hdc
: the master device on the second ATA channel
hdc1
: first partition on this disk (example)
hdc5
: first logical drive in the extended partition (example)
hdd
: the slave device on the second ATA channel
lp
: line printers (compare lp)
parport
, pp
: parallel ports
pt
: pseudo-terminals (virtual terminals) SCSI driver, also used by libATA (modern PATA/SATA driver), USB, IEEE 1394, etc.
sd
: mass-storage driver
sda
: first registered device
sda4
: last partition on this disk (example)
sda6
: second logical drive in the extended partition (example)
ses
: Enclosure driver
sg
: generic SCSI layer
sr
: “ROM” driver (data-oriented optical disc drives; scd is just a secondary alias)
st
: magnetic tape driver
tty
: terminals
ttyS
: (platform) serial port driver
ttyUSB
: USB serial converters, modems, etc.