Search notes:

/dev/null

POSIX requires /dev/null to be «an empty data source and infinite data sink».
Thus,

Recreating /dev/null

The following mv command overwrites /dev/null:
$ sudo mv a-file /dev/null
Now, /dev/null is not the special device file anymore.
It can be recreated again by first deleting the ordinary file whose name now is /dev/null
$ sudo rm /dev/null
… and then recreating it like so:
$ sudo mknod -m 0666 /dev/null c 1 3

See also

man 4 null
/dev/zero
/dev
Apparently, /dev/null is created in drivers/char/mem.c.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/fh...', 1758195015, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/fhs/dev/null(67): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78