Reputation: 5851
I was reading a Wikipedia entry which says : In Unix-like operating systems, /dev/null or the null device is a special file that discards all data written to it but "reports that the write operation succeeded."
There are two parts to this statement. First part is clear that its a null file. I am not clear about second part of the sentence, where/how can i find the write operation succeeded?
Upvotes: 1
Views: 718
Reputation: 2474
/dev/null is a special file that doesn't store any data. It means you will always succeed at writing in this file, no matter how much data you want to write.
Said differently, you won't get any error when trying to write in this file.
Upvotes: 5