/dev/null

/dev/null ۤüʥե롣ڥ롦եȸƤФ뤳Ȥ⤢ޤ̥(NULL)ǥХʤΤ ls ǥեߤȡѡߥåκ¦˥ǥХǤ뤳Ȥ򼨤 c ĤƤޤ ̣ϡ֥ǡݤסɸϤ䥨顼 /dev/null ˥쥯Ȥƥץ¹Ի˥åϤʤ˻ȤȤ¿

$ ls -l /dev/null
crw-rw-rw-  1 root root 1, 3  6 13  2005 /dev/null

⤷餫ͳˤ /dev/null äƤޤäϡmknod ޥɤѤƺƺ뤳Ȥǽ뤤ϡ/dev/null Τ褦""ꤿȤ mknod ޥɤѤޤ

  • /dev/null κ
    # mknod -m 666 /dev/null c 1 3
  • /dev/null Τ褦ʲ nullpo(̥)ꤿ
    # mknod -m 666 ./nullpo
    # ls -l ./nullpo
    crw-rw-rw-  1 root root 1, 3  6 13 12:30 ./nullpo
  • Ǻää nullpo(̥)rm Ǿäޤ
    # rm ./nullpo
    rm: remove 饯ڥե `./nullpo'? y
  • /dev/zero κ
    # mknod -m 666 /dev/null c 1 5

(꥽)

JM - null
http://www.linux.or.jp/JM/html/LDP_man-pages/man4/null.4.html
JM - mknod
http://www.linux.or.jp/JM/html/GNU_fileutils/man1/mknod.1.html

ȥå   Խ ʬ Хåå ź ʣ ̾ѹ   ñ측 ǽ   إ   ǽRSS
Last-modified: Mon, 13 Jun 2005 13:34:45 JST (4302d)