4 ms·
/dev/null behaves like an empty file, which is (or used to be?) a valid executable. Cf http://trillian.mit.edu/~jc/humor/ATT_Copyright_true.html http://trillia
by tripa 8y ago
/dev/null behaves like an empty file, which is (or used to be?) a valid executable.
Cf http://trillian.mit.edu/~jc/humor/ATT_Copyright_true.html http://trillian.mit.edu/~jc/humor/ATT_Copyright_true.html or https://twitter.com/rob_pike/status/966896123548872705 https://twitter.com/rob_pike/status/966896123548872705
- jwilk 8y agoIn most contexts empty file is indeed a valid executable. Debian folks learned this the hard way recently: https://bugs.debian.org/919341 https://bugs.debian.org/919341 However, executing /dev/null doesn't seem to work on Linux: $ sudo chmod 777 /dev/null $ /dev/null bash: /dev/null: Permission denied