摘要: 在类Unix系统中,/dev/null,或称空设备,是一个特殊的设备文件,它丢弃一切写入其中的数据(但报告写入操作成功),读取它则会立即得到一个EOF[1]。 在程序员行话,尤其是Unix行话中,/dev/null被称为bit bucket[2]或者黑洞。 空设备通常被用于丢弃不需要的输出流,或作为 阅读全文
posted @ 2016-03-17 10:42 圆旭 阅读(324) 评论(0) 推荐(0) 编辑
摘要: ls -la /dev/tty shows the output: The 'c' means it's a character device. tty is a special file representing the 'controlling terminal' for the current 阅读全文
posted @ 2016-03-17 10:40 圆旭 阅读(250) 评论(0) 推荐(0) 编辑