[ÁøÁÖ]´ÔÀÌ ³²±â½Å ±Û:
>/dev/nullÆÄÀÏ·Î ½Éº¼¸¯ ¸µÅ© ½ÃÅ°´Ù°¡ Àß ¾ÈµÇ¼(-_-;)
>nullÆÄÀÏÀ» ³¯¸®±¸
>touch null¿¡¼ »õ·Î ¸¸µé¾ú´Âµ¥
>·Î±ä ÇÒ¶§¸¶´Ù ÀÌ·± °ÍÀÌ ¶ß³×¿©.
>
>bash: /dev/null: Çã°¡ °ÅºÎµÊ
>[: -eq: unary operator expected
>bash: /dev/null: Çã°¡ °ÅºÎµÊ
>[: integer expression expected before -eq
>
>¿ø·¡ null crw-rw----À̾ú´Âµ¥
>touch·Î ¸¸µç nullÀÇ Æ۹̼ÇÀº -rw-rw----À̰ŵ¢¿©?
>ÀÌ°ÍÀ» crw-rw----·Î ¹Ù²ãÁà¾ßÇÒ °Í °°Àºµ¥..
>´çÃÖ c¶õ °ÍÀÌ ¹ºÁö ¸ô°Ú³×¿©.
>
>Á» °¡¸£ÃÄ ÁÖ¼¼¿©..
========================================
# mknod -m 660 /dev/null c 1 3
À¸·Î Çغ¸¼¼¿ä....
------------------------
# man null
NULL(4) Linux Programmer's Manual NULL(4)
NAME
null, zero - data sink
DESCRIPTION
Data written on a null or zero special file is discarded.
Reads from the null special file always return end of
file, whereas reads from zero always return 0 characters.
null and zero are typically created by:
mknod -m 666 /dev/null c 1 3
mknod -m 666 /dev/zero c 1 5
chown root:mem /dev/null /dev/zero
NOTES
If these devices are not writable and readable for all
users, many programs will act strange.
FILES
/dev/null
/dev/zero
SEE ALSO
mknod(1), chown(1)
-------------------
# man mknod
SYNOPSIS
mknod [OPTION]... NAME TYPE [MAJOR MINOR]
DESCRIPTION
Create the special file NAME of the given TYPE.
-m, --mode=MODE
set permission mode (as in chmod), not 0666 - umask
--help display this help and exit
--version
output version information and exit
MAJOR MINOR are forbidden for TYPE p, mandatory otherwise.
TYPE may be:
b create a block (buffered) special file
c, u create a character (unbuffered) special file
p create a FIFO
REPORTING BUGS
Report bugs to <bug-fileutils@gnu.org>.
SEE ALSO
The full documentation for mknod is maintained as a Tex
info manual. If the info and mknod programs are properly
installed at your site, the command
info mknod
should give you access to the complete manual.
|