Ïê½âUnix/Linux ShellµÄÊäÈëÊä³ö
ShellµÄI/OÓï·¨ÄÑÒÔÀí½â£¬¸üÄÑÒÔÕýȷʹÓá£ShellµÄÊäÈëÊä³öÓï·¨ÓÐÁ½¸öÄѵ㣺Öض¨ÏòºÍÎļþÃèÊö·û¡£ÎÒÒÔÇ°¶ÔShell I/OµÄÀí½âÒ²ÓдíÎó¡£×î½üÖØÐÂÕûÀí˼·£¬¾ö¶¨Ð´Ò»ÆªÎÄÕÂÀ´×ܽáI/OÖض¨Ïò¡£
ÏȽéÉܼ¸¸ö»ù±¾¸ÅÄî:
1£©Îļþ(File)£ºÔÚUnix/LinuxÖУ¬ÎļþÀàÐÍÓÐÆßÖÖ£¬ÕâÆßÖÖÀàÐÍÊÇ£ºÄ¿Â¼¡¢·ûºÅÁ´½Ó(Ö¸ÏòÁíÒ»¸öÎļþ)¡¢Ì×½Ó×ÖÎļþ¡¢¿éÉ豸Îļþ¡¢×Ö·ûÉ豸Îļþ¡¢ÃüÃû¹ÜµÀÎļþ¡¢ÆÕͨÎļþ¡£ÕâÒâζ×Å£¬I/OÉ豸±»Unix/LinuxÊÓΪ“ÌØÊ┵ÄÎļþ£¬ËùÒÔ¶ÔÉ豸½øÐÐÊäÈëÊä³öµÈͬÓÚ¶ÁдÎļþ¡£
2£©ÎļþÃèÊö·û(File Descriptor
)£ºÊµ¼ÊÉÏ£¬ShellÖеÄÎļþÃèÊö·ûµÈͬÓÚCÓïÑÔÖеÄÎļþ½á¹¹£¨²Î¼û¡¶The C Programming Languag¡·µÄ7.5½Ú£©£¬ËüÊÇÒ»¸ö°üº¬ÎļþÐÅÏ¢µÄ½á¹¹£¬ÕâЩÐÅÏ¢°üÀ¨£º»º³åÇøµÄλÖ㬻º³åÇøÖе±Ç°×Ö·ûµÄλÖã¬ÎļþÊÇ·ñµ½´ïĩβµÈ¡£Ò»¸öShell½Å±¾ÓÐ10¸öÎļþÃèÊö·û¡£ÆäÖУ¬0¡¢1¡¢2ÊDZê×¼ÊäÈë¡¢±ê×¼Êä³öºÍ±ê×¼´íÎó£¬ÎÒÃÇ¿ÉÒÔÈÎÒâʹÓõÄÎļþÃèÊö·ûÊÇ3µ½9¡£
3£©Öض¨Ïò(Redirect)£ºÔÚShellÖУ¬ÎÒÃÇ¿ÉÒÔ¶ÔÃüÁÃüÁî¾ÍÊdzÌÐò»ò½Å±¾£©µÄ±ê×¼ÊäÈë¡¢±ê×¼Êä³öºÍ±ê×¼´íÎó½øÐÐÖض¨Ïò£¬Ê¹ÆäÖ¸ÏòÆäËûÎļþ¡£
ÏÂÃ濪ʼÌÖÂÛShellÊäÈë/Êä³öµÄµÄÁ½ÖÖÇé¿ö£º
1£©ÊäÈëÊä³ö
2£©
3£©
ÔÚ´ËÉùÃ÷£¬¿ÉÒÔËæÒâתÔØ»òÒýÓ㬵«Çë×¢Ã÷³ö´¦£¬Ð»Ð»¡£
Ïà¹ØÎĵµ£º
Ê×ÏÈ£¬Ó¦ÓóÌÐòÊÇÎÞ·¨Ö±½Ó·ÃÎÊÄ£¿éÖеĺ¯ÊýµÄ£¨¼´Ê¹ÊÇÄã×Ô±à×Ô¹ÒµÄÄ£¿é££Êµ¼ÊÉÏËüÒ²ÊÇÄÚºËÄ£¿é£©£¬Óû§¿Õ¼äÓëÄں˿ռäÖ®¼äÖ»ÓÐͨ¹ýһЩÌض¨µÄϵͳº¯ÊýÀ´½øÐÐͨѶ£¨Èçʲôuser_to_kernel£©£¬¶ø¾ø¶Ô²»¿ÉÄÜͨ¹ý“Ö±½Óµ÷ÓÃÄ£¿éÀïµÄº¯Êý”ÕâÖÖÐÎʽÀ´Í¨Ñ¶¡£
ÄÇô£¬Ëù±àдµÄÄ£¿éÀïµÄº¯ÊýÔõô²ÅÄܱ»Ö´ÐУ¿ÓÉ˵÷Óã¿Æä ......
Ò»¡¢
SVN
·þÎñÆ÷»·¾³µÄ´î½¨
ÎÒÃÇ¿ª·¢µÄÏîÄ¿ÊôÓÚ»ùÓÚ
ARM9
ºË
linux
ϵͳµÄǶÈëʽ¹ÜÀíÈí¼þ£¬Õû¸ö¿ª·¢±àÒë»·¾³±ØÐëÊÇÔÚ
linux
ÏÂÃæ¡£Òò´Ë£¬
SVN
·þÎñÆ÷µÄ»·¾³Ò²±ØÐëÊÇÔÚ
linux
ϵͳ¡£
ÏÖÓеķþÎñÆ÷»·¾³£º²Ù×÷ϵͳ£º
Redhat Linux AS4U4
£¬Äں˰汾Ϊ£º
2.6.13
......
£¨1£©Ö¡»º³åÉ豸¸úTTYµÄ¹Øϵ¡£ÐèÒª¹Ø×¢tty¸úÖ¡»º³åÉ豸µÄ¹Øϵ£¬Ò»°ãÇé¿öÏÂÖ¡»º³åÉ豸ÊÇ¿ÉÒÔ¶ÀÁ¢²Ù×÷µÄ£¬µ«ÊÇÈç¹ûΪÁ˱£Ö¤µ¥¶ÀÕ¼Óò»±»ÇÀÕ¼£¬Ëƺõ»¹Òª¹ØÁªÒ»¸öttyÖնˡ£ÕâÀïÓõÄÊÇÐéÖÕ¶ËVT¡£
ÐéÖնˣ¬Ò²½ÐÐéÆÁ£¬ËüµÄÓ¢ÎÄÃû×ÖΪvirtual terminal,ËõдΪVT»òvt¡£ÔÚUnixϵͳÓû§ÖУ¬ÐéÖÕ¶ËÓÐ×Å ......
ת×Ô£º http://ipie.blogbus.com/logs/36730036.html
Linux¸ß¼¶È¨ÏÞ¹ÜÀí£ºACLÓ÷¨¼ò½é
2009-03-18 23:11:22 by deepblue
Ç°¶Îʱ¼ä£¬ÔÚLinuxÉÏÉèÖÃÒ»¸öĿ¼µÄ·ÃÎÊȨÏÞʱ£¬·¢ÏÖͨ¹ý¼òµ¥µÄchmod²Ù×÷²»ÄÜÂú×ã×Ô¼ºµÄÐèÇó£¬
ÎÊÌ⣺Èç¹ûÓÃrootÕʺŴ´½¨ÁËÒ»¸öĿ¼DIR£¬ÓÐA,B,C,DËÄ×éÓû§£¬ÎÒÏë¸øA×éÓû§¶ÁдִÐеÄȨÏÞ£ ......