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

linux Öض¨Ïò


1. ±ê×¼ÊäÈëµÄ¿ØÖÆ
Óï·¨£ºÃüÁî< Îļþ½«Îļþ×öΪÃüÁîµÄÊäÈë¡£
ÀýÈ磺
mail -s “mail test” das@163.com < file1 ½«Îļþfile1 µ±×öÐżþµÄÄÚÈÝ£¬Ö÷
ÌâÃû³ÆΪmail test£¬Ë͸øÊÕÐÅÈË¡£
2. ±ê×¼Êä³öµÄ¿ØÖÆ
Óï·¨£ºÃüÁî> Îļþ½«ÃüÁîµÄÖ´Ðнá¹ûËÍÖÁÖ¸¶¨µÄÎļþÖС£
ÀýÈç:
ls -l > list ½«Ö´ÐГls -l” ÃüÁîµÄ½á¹ûдÈëÎļþlist ÖС£
Óï·¨£ºÃüÁî>! Îļþ½«ÃüÁîµÄÖ´Ðнá¹ûËÍÖÁÖ¸¶¨µÄÎļþÖУ¬ÈôÎļþÒѾ­´æÔÚ£¬Ôò¸²¸Ç¡£
ÀýÈ磺
ls -lg >! list ½«Ö´ÐГls - lg” ÃüÁîµÄ½á¹û¸²¸ÇдÈëÎļþlist ÖС£
Óï·¨£ºÃüÁî>& Îļþ½«ÃüÁîÖ´ÐÐʱÆÁÄ»ÉÏËù²úÉúµÄÈκÎÐÅϢдÈëÖ¸¶¨µÄÎļþÖС£
ÀýÈ磺
cc file1.c >& error ½«±àÒëfile1.c ÎļþʱËù²úÉúµÄÈκÎÐÅϢдÈëÎļþerror ÖС£
Óï·¨£ºÃüÁî>> Îļþ½«ÃüÁîÖ´ÐеĽá¹û¸½¼Óµ½Ö¸¶¨µÄÎļþÖС£
ÀýÈç:
ls - lag >> list ½«Ö´ÐГls - lag” ÃüÁîµÄ½á¹û¸½¼Óµ½Îļþlist ÖС£
Óï·¨£ºÃüÁî>>& Îļþ½«ÃüÁîÖ´ÐÐʱÆÁÄ»ÉÏËù²úÉúµÄÈκÎÐÅÏ¢¸½¼Óµ½Ö¸¶¨µÄÎļþÖС£
ÀýÈç:
cc file2.c >>& error ½«±àÒëfile2.c ÎļþʱÆÁÄ»Ëù²úÉúµÄÈκÎÐÅÏ¢¸½¼Óµ½Îļþerror ÖС£
3. ÃüÁîÓï·¨
command > filename °Ñ±ê×¼Êä³öÖض¨Ïòµ½Ò»¸öÐÂÎļþÖÐ
command >> filename °Ñ±ê×¼Êä³öÖض¨Ïòµ½Ò»¸öÎļþÖÐ(×·¼Ó)
command 1 > fielname °Ñ±ê×¼Êä³öÖض¨Ïòµ½Ò»¸öÎļþÖÐ
command > filename 2>&1 °Ñ±ê×¼Êä³öºÍ±ê×¼´íÎóÒ»ÆðÖض¨Ïòµ½Ò»¸öÎļþÖÐ
command 2 > filename °Ñ±ê×¼´íÎóÖض¨Ïòµ½Ò»¸öÎļþÖÐ
command 2 >> filename °Ñ±ê×¼Êä³öÖض¨Ïòµ½Ò»¸öÎļþÖÐ(×·¼Ó)
command >> filename 2>&1 °Ñ±ê×¼Êä³öºÍ±ê×¼´íÎóÒ»ÆðÖض¨Ïòµ½Ò»¸öÎļþÖÐ(×·¼Ó)
command < filename >filename2 °ÑcommandÃüÁîÒÔfilenameÎļþ×÷Ϊ±ê×¼ÊäÈ룬ÒÔfilename2Îļþ×÷Ϊ±ê×¼Êä³ö
command < filename °ÑcommandÃüÁîÒÔfilenameÎļþ×÷Ϊ±ê×¼ÊäÈë
command << delimiter °Ñ´Ó±ê×¼ÊäÈëÖжÁÈ룬ֱÖÁÓöµ½delimiter·Ö½ç·û
command <&m °ÑÎļþÃèÊö·ûm×÷Ϊ±ê×¼ÊäÈë
command >&m °Ñ±ê×¼Êä³öÖض¨Ïòµ½ÎļþÃèÊö·ûmÖÐ
command <&- °Ñ¹Ø±Õ±ê×¼ÊäÈë


Ïà¹ØÎĵµ£º

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

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

LINUXÄÚºËÖÐminºÍmaxºêµÄѧϰ

add linux kernel min, max define:
include/linux/kernel.h
/*
 * min()/max() macros that also do
 * strict type-checking.. See the
 * "unnecessary" pointer comparison.
 */
#define min(x,y) \
(__extension__\
({ \
        typeof( ......

linux²»³£Óõ«·Ç³£ÊµÓõÄÃüÁî

²»³£Óõ«·Ç³£ÊµÓõÄÃüÁî
UNIXÃüÁîÊDzâÊԱر¸µÄ֪ʶ£¬³ýÁËһЩ³£ÓõÄÃüÁîÐèÒªÊìϤÒÔÍ⣬Óкܶà·Ç³£ÓÐÓõ«ÊDz»³£ÓõÄÃüÁîÒ²ÐèÒªÁ˽⣬ÕâÑù¶Ô¹¤×÷ÓкܴóµÄ°ïÖú£¬ÕâÀïÌṩһЩÎÒƽ³£¹¤×÷ÖÐÀÛ»ýµÄ֪ʶ£¬Ï£ÍûÄÜ°ïÖúµ½´ó¼Ò ^_^
1¡¢Í³¼ÆËùÓÐÎļþÖеļǼÊý£ºwc -l filename
2¡¢²é¿´¹²ÏíÄڴ棺ipcs -m
3¡¢viÖеÄÅúÁ¿×Ö·ûÆ¥Å䣨a- ......

Linux UDPÑÏÖضª°üÎÊÌâµÄ½â¾ö


²âÊÔϵͳÔÚLinuxÉϵÄÐÔÄÜ·¢ÏÖ¶ª°üÂʼ«ÎªÑÏÖØ£¬·¢210000ÌõÊý¾Ý£¬¶ª°ü´ï110000Ö®¾Þ£¬¶ª°üÂʳ¬¹ý50%¡£Í¬µÈÇéÐÎÏÂWindowsÉϲâÊÔ£¬½ö¶ª¼¸ÌõÊý¾Ý¡£ÐÎÊÆÑϾþ£¬±ØÐë½â¾ö¡£¿¼ÂÇ¿ÉÄÜÊÇÒòΪЭÒéÕ»BufferÌ«µÍËùÖ£¬ÓÚÊÇÏÈ¿´¿´Ä¬ÈÏÇé¿ö£º
sysctl -a |grep net.core
·¢ÏÖ
net.core.rmem_max = 131071
net.core.rmem_default = 11264 ......

linux ¶¨Ê±ÈÎÎñ crontab Ïêϸ½âÊÍ


linux ¶¨Ê±ÈÎÎñ crontab Ïêϸ½âÊÍ
cron ÊÇlinuxµÄÄÚÖ÷þÎñ£¬µ«Ëü²»×Ô¶¯ÆðÀ´£¬¿ÉÒÔÓÃÒÔϵķ½·¨Æô¶¯¡¢¹Ø±ÕÕâ¸ö·þÎñ£º  
ÒýÓÃ:  
/sbin/service crond start //Æô¶¯·þÎñ  
/sbin/service crond stop //¹Ø±Õ·þÎñ  
/sbin/service crond restart //ÖØÆô·þÎñ  
/sbin/service crond reload //Ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ