/ dev / full
/dev/full
is a virtual device file on many Unix operating systems that can be used to simulate a full hard disk drive . This can be useful for both manual and automatic software testing.
use
/dev/full
can be used during write accesses to simulate a full hard disk. For read accesses by processes , an infinite 0-byte stream (similar to / dev / zero ) is provided. With write access there is a "write error: No space left on device".
$ echo "Hello world" > /dev/full
bash: echo: write error: No space left on device
history
Support for the always-full device in Linux was already documented in 2007. Native support was added to FreeBSD version 11.0 in 2016.