What is /dev/null?
It is a virtual device, which has a special property: Any data written to /dev/null vanishes or disappears. Because of this characteristic, it is also called bitbucket or blackhole. Let us see a demonstration.
Redirect output to /dev/null
In this demo, you can see that we added some data, but that data was not stored. This particular characteristic of /dev/null has some use cases. Let’s see them.
What is /Dev/Null in Linux?
If you have been learning shell programming, you may already have come across something like /dev/null. In this article, we will understand what it is and how it is used. Let’s start off by understanding what /dev is.
Contact Us