-bash: /dev/null: Permission denied

Posting the Debian answer for posterity…

sudo su \
&& rm -rf /dev/null \
&& mknod /dev/null c 3 2 \
&& chmod 666 /dev/null

Leave a Reply

Your email address will not be published. Required fields are marked *