´ó¼ÒºÃ£¬ÎÒÊÇÒ»Ãû³õѧshell½Å±¾µÄlinux°®ºÃÕß¡£
ÏÖÔÚÓöµ½Ò»¸öÎÊÌ⣬»¹¿ÒÇë¸÷λ´óÉñ°ï»Ø¸´Ï¡£²»Ê¤¸Ð¼¤£¡£¡£¡£¡
[root@rhel6 ~]# mkfs.ext4 /dev/sda
mke2fs 1.41.12 (17-May-2010)
/dev/sda is entire device, not just one partition!
ÎÞÂÛÈçºÎÒ²Òª¼ÌÐø? (y,n)
ÏÖÔÚÎÒÏëϵͳĬÈÏÑ¡Ôñn£¬²»ÒªÈÃÎÒÊÖ¶¯ÊäÈë¡£
ÇëÎÊÕâ¸ö½Å±¾¸ÃÔõôȥдÄØ£¿£¿£¿
pl_014 ÓÚ 2013-01-28 23:01:51·¢±í:
¸øÂ¥Ö÷Ò»¸ö·½·¨echo 'y' | mkfs.ext4 /dev/sda
Õâ¸ö·½·¨Ê¹ÓÃgetcharº¯Êý¶ÁÈ¡±ê×¼ÊäÈ루¼´ÐèÒªÊäÈëÒ»¸ö×Ö·û£¬ÔÙ°´»Ø³µ£©¹ÜÓã¬ÒÔÏÂÊDzο¼¡£[code]$ cat test.c
#include
int main()
{
int ch;
ch=getchar();
printf("%d\n",ch);
return 0;
}
$ echo 'a' | ./test
97[/code]¶ÔÓÚÂ¥Ö÷¸ø³öµÄÃüÁî±¾È˲»¸ÒËæ±ã³¢ÊÔ£¬Ò²²»»áÕûÒ»¸öÐéÄâÉ豸£¬ÔÝʱҲûÓÐÏëµ½ÆäËüºÃµÄ³¢ÊԵİ취¡£
ÁíÍ⣬sdaÒ»°ã¶¼ÊÇÓ²ÅÌÉ豸£¬Õâ¸öÃüÁî²»½ö»áÇå¿ÕÕû¸öÓ²ÅÌ£¬»¹¿ÉÄܻᵼÖÂÓ²ÅÌÎÞ·¨Æô¶¯£¬·ÖÇø±íÎÞ·¨±»ÕýÈ·¶ÁÈ¡£¬ÒòΪûÓзÖÇø±í¡£