转载请注明来源:http://blog.csdn.net/loongshawn/article/details/50514018
1 /dev/null文件
1.1 维基百科关于/dev/null说明
In some operating systems, the null device is a device file that discards all data written to it but reports that the write operation succeeded.
The null device is typically used for disposing of unwanted output streams of a process, or as a convenient empty file for input streams. This is usually done by redirection.
The /dev/null device is a special file, not a directory, so one cannot move a whole file or directory into it with the Unix mv command. The rm command is the proper way to delete files in Unix.
以上引自维基百科https://en.wikipedia.org/w/index.php?title=Null_device&redirect=no
简单翻译:
在许多操作系统中, /dev/null是一个空设备,是一个抛弃向该文件中写的所有数据并反馈写操作成功的设备文件。
/dev/null通常用来处理进程中那些不想要的输出流,或者作为一个方便的空文件给输入流。这个通过用来做重定向。
/dev/null设备是一个特殊的文