Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxϵͳµÄShell I/OÖض¨ÏòÏê½â

I/OÖض¨ÏòÏê½â¼°Ó¦ÓÃʵÀý
1¡¢ »ù±¾¸ÅÄÕâÊÇÀí½âºóÃæµÄ֪ʶµÄÇ°ÌᣬÇëÎñ±ØÀí½â£©
a¡¢ I/OÖض¨Ïòͨ³£Óë FDÓйأ¬shellµÄFDͨ³£Îª10¸ö£¬¼´ 0¡«9£»
b¡¢ ³£ÓÃFDÓÐ3¸ö£¬Îª0£¨stdin£¬±ê×¼ÊäÈ룩¡¢1£¨stdout£¬±ê×¼Êä³ö£©¡¢2£¨stderr£¬±ê×¼´íÎóÊä³ö£©£¬Ä¬ÈÏÓëkeyboard¡¢monitor¡¢monitorÓйأ»
c¡¢ Óà < À´¸Ä±ä¶Á½øµÄÊý¾ÝÐŵÀ(stdin)£¬Ê¹Ö®´ÓÖ¸¶¨µÄµµ°¸¶Á½ø£»
d¡¢ Óà > À´¸Ä±äËͳöµÄÊý¾ÝÐŵÀ(stdout, stderr)£¬Ê¹Ö®Êä³öµ½Ö¸¶¨µÄµµ°¸£»
e¡¢ 0 ÊÇ < µÄĬÈÏÖµ£¬Òò´Ë < Óë 0<ÊÇÒ»ÑùµÄ£»Í¬Àí£¬> Óë 1> ÊÇÒ»ÑùµÄ£»
f¡¢ ÔÚIOÖض¨Ïò ÖУ¬stdout Óë stderr µÄ¹ÜµÀ»áÏÈ×¼±¸ºÃ£¬²Å»á´Ó stdin ¶Á½ø×ÊÁÏ£»
g¡¢ ¹ÜµÀ“|”(pipe line):ÉÏÒ»¸öÃüÁîµÄ stdout ½Óµ½ÏÂÒ»¸öÃüÁîµÄ stdin;
h¡¢ tee ÃüÁîÊÇÔÚ²»Ó°ÏìÔ­±¾ I/O µÄÇé¿öÏ£¬½« stdout ¸´ÖÆÒ»·Ýµ½µµ°¸È¥;
i¡¢ bash£¨ksh£©Ö´ÐÐÃüÁîµÄ¹ý³Ì£º·ÖÎöÃüÁ±äÁ¿ÇóÖµ£­ÃüÁîÌæ´ú£¨``ºÍ$( )£©£­Öض¨Ïò£­Í¨Åä·ûÕ¹¿ª£­È·¶¨Â·¾¶£­Ö´ÐÐÃüÁ
j¡¢ ( ) ½« command group ÖÃÓÚ sub-shell È¥Ö´ÐУ¬Ò²³Æ nested sub-shell£¬ËüÓÐÒ»µã·Ç³£ÖØÒªµÄÌØÐÔÊÇ£º¼Ì³Ð¸¸shellµÄStandard input, output, and error plus any other open file descriptors¡£
k¡¢ exec ÃüÁ³£ÓÃÀ´Ìæ´úµ±Ç° shell ²¢ÖØÐÂÆô¶¯Ò»¸ö shell£¬»»¾ä»°Ëµ£¬²¢Ã»ÓÐÆô¶¯×Ó shell¡£Ê¹ÓÃÕâÒ»ÃüÁîʱÈκÎÏÖÓл·¾³¶¼½«»á±»Çå³ý¡£exec ÔÚ¶ÔÎļþÃèÊö·û½øÐвÙ×÷µÄʱºò£¬Ò²Ö»ÓÐÔÚÕâʱ£¬exec ²»»á¸²¸ÇÄ㵱ǰµÄ shell »·¾³¡£
2¡¢ »ù±¾IO
cmd > file °Ñ stdout Öض¨Ïòµ½ file ÎļþÖУ»
cmd >> file °Ñ stdout Öض¨Ïòµ½ file ÎļþÖÐ(×·¼Ó)£»
cmd 1> fiel °Ñ stdout Öض¨Ïòµ½ file ÎļþÖУ»
cmd > file 2>&1 °Ñ stdout ºÍ stderr Ò»ÆðÖض¨Ïòµ½ file ÎļþÖУ»
cmd 2> file °Ñ stderr Öض¨Ïòµ½ file ÎļþÖУ»
cmd 2>> file °Ñ stderr Öض¨Ïòµ½ file ÎļþÖÐ(×·¼Ó)£»
cmd >> file 2>&1 °Ñ stderr ºÍ stderr Ò»ÆðÖض¨Ïòµ½ file ÎļþÖÐ(×·¼Ó)£»
cmd < file >file2 cmd ÃüÁîÒÔ file Îļþ×÷Ϊ stdin£¬ÒÔ file2 Îļþ×÷Ϊ stdout£»
cat <>file ÒÔ¶ÁдµÄ·½Ê½´ò¿ª file£»
cmd < file cmd ÃüÁîÒÔ file Îļþ×÷Ϊ stdin£»
cmd << delimiter Here document£¬´Ó stdin ÖжÁÈ룬ֱÖÁÓöµ½ delimiter ·Ö½ç·û¡£
3¡¢ ½ø½×IO
>&n ʹÓÃϵͳµ÷Óà dup (2) ¸´ÖÆÎ


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

LinuxÏÂORCLEÊý¾Ý¿âÔöÁ¿±¸·Ý½Å±¾ (»ù´¡Æª)

 ORCLEÊý¾Ý¿â±¸·Ý²ßÂÔ
1.ͨ¹ýʹÓÃexpºÍimpÃüÁîʵÏÖÊý¾Ý¿âµ¼³öºÍµ¼Èë¡£  
ÓÐÈýÖÖģʽ£º
       a. Óû§Ä£Ê½£º µ¼³ö(µ¼Èë)Óû§ËùÓжÔÏóÒÔ¼°¶ÔÏóÖеÄÊý¾Ý£»
       b. ±íģʽ£º µ¼³ö(µ¼Èë)Óû§ËùÓбí»òÕßÖ¸¶¨µÄ±í£»
  &nb ......

Linux²é¿´ÏµÍ³×´Ì¬

Linux²é¿´ÏµÍ³×´Ì¬
Ô­ÎÄ:http://www.kklinux.com/html/linuxwangluojishu/linuxxitongguanliyuan/200903/13-4304.html
1¡£ÈçºÎ²é¿´ÏµÍ³µ±Ç°µÄ¸ºÔØ£¿
  
   ·½·¨£ºÊ¹Óà top ÃüÁî
   [Ç°5ÐнâÊÍ]
   µÚÒ»ÐУº¡¾ÏµÍ³¸Å¿ö¡¿µ±Ç°Ê±¼ä¡¢ÏµÍ³Æô¶¯Ê±¼ä¡¢µ±Ç°ÏµÍ³µÇ¼Óû§ÊýÄ¿¡¢Æ½¾ ......

Linuxƽ̨Ï°²×°Apache (by quqi99)

       Linuxƽ̨Ï°²×°Apache (by quqi99)
 
×÷ÕߣºÕÅ»ª ·¢±íÓÚ£º2009-11-19
°æȨÉùÃ÷£º¿ÉÒÔÈÎÒâתÔØ£¬×ªÔØʱÇëÎñ±ØÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕÂԭʼ³ö´¦ºÍ×÷ÕßÐÅÏ¢¼°±¾°æȨÉùÃ÷
 Ê×Ïȱ£Ö¤°²×°GCCÓëZLIB
 °²×°ZLIB²½Ö裺
1£©./configure --prefix=/usr/zhang/zlib
2) make ......

[ÕûÀí]Linux³£ÓÃÃüÁî

Îļþϵͳ¹ÒÔØ£ºmount
¸ñʽ£ºmount [-²ÎÊý] [É豸Ãû³Æ] [¹ÒÔصã]
ÆäÖг£ÓõIJÎÊý£º
¡¡¡¡ -t  Ö¸¶¨É豸µÄÎļþϵͳÀàÐÍ£¬³£¼ûµÄÓУº
¡¡¡¡      minix linux×îÔçʹÓõÄÎļþϵͳ
¡¡¡¡      ext2 linuxÄ¿Ç°³£ÓõÄÎļþϵͳ
¡¡¡¡      msdo ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ