Skip to content
EntityQ1075931· pop 13· linked from 3 articles

Also known as the always full device

In Linux, FreeBSD, and NetBSD, , or the always-full device, is a special file that always returns the error code (meaning "No space left on device") on writing, and provides any number of zero bytes to a process that reads from it (similar to ). This device is usually used when testing the behavior of a program when it encounters a "disk full" error. $ echo "Hello, World" > /dev/full bash: echo: write error: No space left on device

~1 min read

Article

4 sections
Contents
  • History
  • Relationship to other special files
  • See also
  • References

In Linux, FreeBSD, and NetBSD, , or the always-full device, is a special file that always returns the error code (meaning "No space left on device") on writing, and provides any number of zero bytes to a process that reads from it (similar to ). This device is usually used when testing the behavior of a program when it encounters a "disk full" error.

$ echo "Hello, World" > /dev/full bash: echo: write error: No space left on device

Connections

Categories