Hacker News new | ask | show | jobs
by bor0 1568 days ago
It's a good post, but heavily OS dependant. For example, on my Mac:

  $ ls /dev/null /dev/full
  ls: /dev/full: No such file or directory
  /dev/null
I guess in theory, you can imitate `/dev/full` by other means.
3 comments

>Linux has this fun device file called "/dev/full"

Yes it is. And it specifies the OS as well.

NetBSD and FreeBSD have /dev/full as well.
And all OS can have disks that are full as well.
I can't test this and the original blog post seems to be missing, but someone has a Github gist where they create a full ramdisk on OSX:

https://gist.github.com/koral--/12a6cdda22ffbd82f28ecc93e0b5...

Yup — I found this worked well: https://www.thedroidsonroids.com/blog/dev-full-osx