Post AAkftErBEkwoWNZ30S by Johann150@fosstodon.org
(DIR) More posts by Johann150@fosstodon.org
(DIR) Post #AAkftEML5QHGyj8Pw0 by cirno@fosstodon.org
2021-08-27T13:25:15Z
0 likes, 0 repeats
For some reason I find /dev/null uncanny. Maybe I just don't get the Linux filesystem, but having a black hole be just a regular ol' unassuming file is vaguely disturbing.
(DIR) Post #AAkftErBEkwoWNZ30S by Johann150@fosstodon.org
2021-08-27T13:29:51Z
0 likes, 0 repeats
@cirno its not a regular file though, its a character device:$ stat -c'%A' /dev/nullcrw-rw-rw-
(DIR) Post #AAkg1raL86Mex4neXA by cirno@fosstodon.org
2021-08-27T13:31:25Z
0 likes, 0 repeats
@Johann150 It's a regular file in the sense that I can just open a file explorer, go to /dev and it's sitting there, looking like a file....now I wonder if it's possible to "sudo rm /dev/null" and what would happen if I did that.
(DIR) Post #AAkgTG7031PYq58iBM by Johann150@fosstodon.org
2021-08-27T13:36:22Z
0 likes, 0 repeats
@cirno aah another "what happens if i do X with /dev/null", i remember a while back someone tried to tar(1) it(spoiler it creates a tar with a strange 0 byte file in it)
(DIR) Post #AAkhy8vQuv3XTv1ICe by cirno@fosstodon.org
2021-08-27T13:53:08Z
0 likes, 0 repeats
@Johann150 The spoiler didn't stop me 'cuz I did it anyway just now.