信息来源:阮一峰每周分享
文章来源:What Is /Dev/Null – an Introduction to the Bit Bucket
What Is /Dev/Null – an Introduction to the Bit Bucket /Dev/Null 是什么 - Bit Bucket 的简介
If you have used Linux for any amount of time, you most likely have come across the bit bucket, normally written as /dev/null. Understanding this special file, how it works, and it’s importance will become a invaluable tool. In this article, we will discuss what /dev/null is, how to use it, and why it earned the name bit bucket. We will also explore some examples of how it can be used in common practice.
如果你使用过 Linux,那么你和可能碰到过位桶,通常写为 dev/null。理解这个特殊的文件如何工作以及它的重要性,将会大有帮助。这篇文章中,我们将会探讨 dev/null
是什么,它是如何工作的,以及为什么它会有 bit buket
这个名字。同时我们也会展开几个例子,看一下它如何应用到平常的实践中。