Skip to main content
Tweeted twitter.com/StackUnix/status/817401221812207617
Remove some paragraphs in hope of making the core historical question clear
Source Link
Michael Homer
  • 78.9k
  • 17
  • 221
  • 239

Why was /dev/null was called this waythat?

I'm looking for some historic info about the null device.

Given that it works like an always empty file, I wonder why it Why was it called /dev/null instead of (for example) /dev/empty.

Several sources suggest to "think of /dev/null as a black hole" but in this case it file should block a read() syscall forever, not simply return an end of file.
My insight is that if you look inside a black hole, you don't simply see nothing, you never see.

If you wonder how such behavior could be actually useful, you should notice that on unix an "always blocking file" could be used to wait for signals.?

The FreeBSD's manual page states that "A null device appeared in Version 7 AT&T UNIX" but I can't find any reference or hint about why that name was originally takenchosen.

If it turns out that the name was originally used in a more ancient OS, I'd like to know how the original device worked and why thethat name was chosen.

Obviously I'm not looking about opinions about the device or its name, only references about its history.

Why /dev/null was called this way?

I'm looking for some historic info about the null device.

Given that it works like an always empty file, I wonder why it was called /dev/null instead of (for example) /dev/empty.

Several sources suggest to "think of /dev/null as a black hole" but in this case it file should block a read() syscall forever, not simply return an end of file.
My insight is that if you look inside a black hole, you don't simply see nothing, you never see.

If you wonder how such behavior could be actually useful, you should notice that on unix an "always blocking file" could be used to wait for signals.

The FreeBSD's manual page states that "A null device appeared in Version 7 AT&T UNIX" but I can't find any reference or hint about why that name was originally taken.

If it turns out that the name was originally used in a more ancient OS, I'd like to know how the original device worked and why the name was chosen.

Obviously I'm not looking about opinions about the device or its name, only references about its history.

Why was /dev/null called that?

I'm looking for some historic info about the null device. Why was it called /dev/null instead of (for example) /dev/empty?

FreeBSD's manual page states that "A null device appeared in Version 7 AT&T UNIX" but I can't find any reference or hint about why that name was originally chosen.

If it turns out that the name was originally used in a more ancient OS, I'd like to know how the original device worked and why that name was chosen.

I tried to fix the concern of the closers about the question being opinion based.
Source Link
Giacomo Tesio
  • 985
  • 1
  • 9
  • 19

Why /dev/null instead of /dev/emptywas called this way?

I'm looking for some historic info about the null device.

Given that it works like an always empty file, I wonder why it was called /dev/null instead of (for example) /dev/empty. Is there any OS that actually call it this way?

This because I expected aSeveral null filesources suggest to "think of /dev/null as a black hole" but in this case it file should block a read() syscall forever, not simply return an end of file.
My insight is that if you look inside a black hole, you don't simply see nothing, you never see.

If you wonder how such behavior could be actually useful, you should notice that on unix an "always blocking file" could be used to wait for signals.

The FreeBSD's manual page states that "A null device appeared in Version 7 AT&T UNIX" but I can't find any reference or hint about why that name was originally taken.

If it turns out that the name was originally used in a more ancient OS, I'd like to know how the original device worked and why the name was chosen.

Obviously I'm not looking about opinions about the device or its name, only references about its history.

Why /dev/null instead of /dev/empty?

I'm looking for some historic info about the null device.

Given that it works like an always empty file, I wonder why it was called /dev/null instead of /dev/empty. Is there any OS that actually call it this way?

This because I expected a null file to block a read() syscall forever, not simply return an end of file.
My insight is that if you look inside a black hole, you don't simply see nothing, you never see.

If you wonder how such behavior could be actually useful, you should notice that on unix an "always blocking file" could be used to wait for signals.

Why /dev/null was called this way?

I'm looking for some historic info about the null device.

Given that it works like an always empty file, I wonder why it was called /dev/null instead of (for example) /dev/empty.

Several sources suggest to "think of /dev/null as a black hole" but in this case it file should block a read() syscall forever, not simply return an end of file.
My insight is that if you look inside a black hole, you don't simply see nothing, you never see.

If you wonder how such behavior could be actually useful, you should notice that on unix an "always blocking file" could be used to wait for signals.

The FreeBSD's manual page states that "A null device appeared in Version 7 AT&T UNIX" but I can't find any reference or hint about why that name was originally taken.

If it turns out that the name was originally used in a more ancient OS, I'd like to know how the original device worked and why the name was chosen.

Obviously I'm not looking about opinions about the device or its name, only references about its history.

Post Closed as "Opinion-based" by G-Man Says 'Reinstate Monica', Anthon, GAD3R, Rui F Ribeiro, Archemar
added 257 characters in body
Source Link
Giacomo Tesio
  • 985
  • 1
  • 9
  • 19

I'm looking for some historic info about the null device.

Given that it works like an always empty file, I wonder why it was called /dev/null instead of /dev/empty. Is there any OS that actually call it this way?

This because I expected a null file to block a read() syscall forever, not simply return an end of file.
My insight is that if you look inside a black hole, you don't simply see nothing, you never see.

If you wonder how such behavior could be actually useful, you should notice that on unix an "always blocking file" could be used to wait for signals.

I'm looking for some historic info about the null device.

Given that it works like an always empty file, I wonder why it was called /dev/null instead of /dev/empty. Is there any OS that actually call it this way?

This because I expected a null file to block a read() syscall forever, not simply return an end of file.

I'm looking for some historic info about the null device.

Given that it works like an always empty file, I wonder why it was called /dev/null instead of /dev/empty. Is there any OS that actually call it this way?

This because I expected a null file to block a read() syscall forever, not simply return an end of file.
My insight is that if you look inside a black hole, you don't simply see nothing, you never see.

If you wonder how such behavior could be actually useful, you should notice that on unix an "always blocking file" could be used to wait for signals.

Source Link
Giacomo Tesio
  • 985
  • 1
  • 9
  • 19
Loading