????/dev/null?豸
???????????豸???????????д??????????????豸??????????????????????????????????windows????и???????豸??NUL ?????????????????κ?д????豸???????????????????????????????????????Щ????????????????????豸??????????????????
?????磺
????[chengmo@centos5 shell]$ cat /dev/null
????[chengmo@centos5 shell]$ cat test.sh >/dev/null
????#?????豸????д????豸???????????
????/dev/zero?豸
????????UNIX ???????У? /dev/zero ??????????????????????????????????????????(NULL?? ASCII NUL?? 0×00)?????е?????????÷?????????????????????????????????????÷??????????????С?????????
?????磺
????[chengmo@centos5 shell]$ dd if=/dev/zero of=testzero count=1024 bs=1024
????1024+0 records in
????1024+0 records out
????1048576 bytes (1.0 MB) copied?? 0.0107194 seconds?? 97.8 MB/s
????#?????????С?1M?????????????????1024?????????1024?饗???1M)????/dev/zero?????????????????????????testzero???
????[chengmo@centos5 shell]$dd if=/dev/zero of=/dev/???????
????#????????????????????е???windows??????????????????????????x00?????????????????????????????????????
????[chengmo@centos5 shell]$cat /dev/zero>testinputzero
????#?????????????????????/dev/zero?豸??????????????????????????????????????x00?????????????????x00????????????????????????????????????????????????
??????linux?????????????棬???????????????????????????????????á????????????????????淽??????????????????????????while(true) {fork……}???????????????????????????檔
????/dev/full?豸
??????Unix???У?/dev/full???????豸????????????豸???????????????д????????豸??????????????ENOSPC????????????/dev/zero??????????????????(NULL?? ASCII NUL?? 0×00)??????豸????????????????????????????????????????????
?????磺
????[chengmo@centos5 shell]$ echo 'chengmo' >/dev/full
????-bash: echo: write error: ?豸????п??
????[chengmo@centos5 shell]$ echo $?
????#??????з??????
????/dev/random[urandom]
????????UNIX???????У?/dev/random???????????豸??????????????????????????α??????????????????????????????豸??????????????????????????????????????????????????ο???linux shell?????????????????date??random??uuid)
????/dev/fd
???????????????????????
????[chengmo@centos5 shell]$ ls /dev/fd/
????0 1 2 3
????????ο???
????linux shell??????????????????????????????????? ??????????????
????/dev/tcp[udp]/host/port
???????????????豸???????????????host????port????tcp[upd]??????????socket??????
?????????????ο???
????linux shell ??????tcp/updЭ???????????????
????/dev/loop
????????UNIX???????У?Loop?豸 ?????loop ???????????豸??????á?
?????磺
????[chengmo@centos5 shell]$mount -o loop example.img /home/chengmo/img
????#??img????????????/home/chengmo/img?????棬????????豸?????????????????????????????????????????
?????????linux ?????豸????????cpu????棬????????磬?????????豸????????windows???泣???????????????????????